I'm sure someone can answer this one easy, it is making my already poor brain hurt.
I have a table of users with:
created_date
id
user_type
I am trying to write a query in MYSQL that would count back from today for 30 days and spit back the count of new users added per day (expecting some days to probably be 0) by user_type
Would like a result similar to:
date: | count(id[user_type = 1]) | count (id[user_type = 2])
2015-02-09 10 9
2015-02-08 0 10
2015-02-07 8 0
and so on....
Thanks!