I have the following need
I have a logging table which logs som leads generated each day.
Now I need to pull a report over the amount of leads for each day over
I had similar question however mine involved a column Convert(date,mydatetime). I had to alter the best answer as follows:
Select count(created_date) as counted_leads, Convert(date,created_date) as count_date from table group by Convert(date,created_date)