This SQL query gives me today's number of users active in the last 30 days:
SELECT COUNT(*)
FROM table.users
WHERE creation_tsz >= (now() - interval '30 days')
How can I modify it to get not a single value, but a table of active users for a range of dates?
My desired output would look like this:
Date Users active in the last 30 days 1/1/2010 10000 1/2/2010 11234 1/3/2010 12343 1/4/2010 15944 ... ...
Thanks,
Rob