In my CRM system I have table with leads. I would like to make a chart to see how many leads were added in last 7 days. For that purpose I need to have separete sums for every day from last week.
How to do that in MySQL?
My table called tab_leads
it have lead_id
(integer) and lead_create_date
(time stamp, format: 0000-00-00 00:00:00)
So I need something like:
- Day 1 - 10
- Day 2 - 0
- Day 3 - 5
- Day 4 - 1
- Day 5 - 9
- Day 6 - 15
- Day 7 (today) - 2