Hello,
I have a table which has a date column. The values in the date column are along with time
i.e., 2/1/2008 12:00:00 PM
2/1/2008 2:13:00 PM
2/3/2008 4:00:00 AM
3/1/2008 1:00:00 PM
3/1/2008 4:00:00 PM
3/3/2008 2:18:00 AM
3/3/2008 5:00:00 PM
3/3/2008 7:08:12 PM
I want to group the data based on dates irrespective of time. i,e., i want the results to be as follows
Date Count
2/1/2008 2
2/3/2008 1
3/1/2008 2
3/3/2008 3
How do i query the table using T-SQL to get the above reults..I tried using different date formats, but still i am not getting the expected results..
I have a table which has a date column. The values in the date column are along with time
i.e., 2/1/2008 12:00:00 PM
2/1/2008 2:13:00 PM
2/3/2008 4:00:00 AM
3/1/2008 1:00:00 PM
3/1/2008 4:00:00 PM
3/3/2008 2:18:00 AM
3/3/2008 5:00:00 PM
3/3/2008 7:08:12 PM
I want to group the data based on dates irrespective of time. i,e., i want the results to be as follows
Date Count
2/1/2008 2
2/3/2008 1
3/1/2008 2
3/3/2008 3
How do i query the table using T-SQL to get the above reults..I tried using different date formats, but still i am not getting the expected results..
Comment