Hello,
I have a datetime column (Col1), and I need to select * from table_1 where Col1 >=01/17/2003
group by date and then by hour increments
example:
Col1 Col2 Col3
02/02/2003 12:45:00 bob red
01/18/2003 23:45:02 tony blue
04/03/2003 17:45:00 Tony Green
02/02/2003 12:05:00 Phil Purple
I need to see
01/18/2003 00:00 - 00:59
.
.
.
01/18/2003 23:00 - 23:59
tony blue
02/02/2003 12:00 - 12:59
Phil Purple
Bob red
I would also like a count of records per hour by day
thanks
I have a datetime column (Col1), and I need to select * from table_1 where Col1 >=01/17/2003
group by date and then by hour increments
example:
Col1 Col2 Col3
02/02/2003 12:45:00 bob red
01/18/2003 23:45:02 tony blue
04/03/2003 17:45:00 Tony Green
02/02/2003 12:05:00 Phil Purple
I need to see
01/18/2003 00:00 - 00:59
.
.
.
01/18/2003 23:00 - 23:59
tony blue
02/02/2003 12:00 - 12:59
Phil Purple
Bob red
I would also like a count of records per hour by day
thanks