php - Getting average number of uploads (or something else) per day -


sorry if i'm using wrong se network question.

i'm in need of fetching average number of uploads , registrations website per day. problem can't seem figure out math task. in database tables uploads , registrations, have columns indicate when row created, stores unix timestamp.

how calculate average number of rows created per day?

select avg(anz) (     select     date(from_unixtime(your_ts_column)) my_date,     count(*) anz         your_table     group my_date ) subquery_alias 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -