I have below mentioned sql query which gives me simple count as on that date or if i use where
and and
condition for date it gives me consolidated count between the date.
select count(*) from A where date(date_1) = '2017-06-01';
I want count for a range of date for separate count for each date.
select count(*) from A where date(date_1) >= '2017-06-01' and date(date_1)<='2017-06-30';
Desired output:
Date Count
2017-06-01 25
2017-06-02 20
2017-06-03 15
- -
- -
2017-06-30 10