Supposing we have the following records in an SQL Server table.
Date 19/5/2009 12:00:00 pm 19/5/2009 12:15:22 pm 20/5/2009 11:38:00 am
What
What RDBMS are you on? Using Sybase, your query would look like this:
select date(datetimeColumn) as myDate, count(*) as myTotal from thisTable Group by myDate Order by myTotal, myDate