I have a table with two fields - datetime and int. I want to do a group by on the datetime only on the date ignoring the hour and minute.
datetime
int
As he didn't specify which version of SQL server he uses (date type isn't available in 2005), one could also use
date
SELECT CONVERT(VARCHAR(10),date_column,112),SUM(num_col) AS summed FROM table_name GROUP BY CONVERT(VARCHAR(10),date_column,112)