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
Your created_date field is datetime, so you'll need to strip off the time before the grouping will work if you want to go by date:
datetime
SELECT COUNT(created_date), created_date FROM table WHERE DATEDIFF(created_date, getdate()) < 10 GROUP BY convert(varchar, created_date, 101)