Link to home
Create AccountLog in
Avatar of jl66
jl66Flag for United States of America

asked on

How to get hourly count in Oracle sql or pl/slq

Have a table T1(ID number(10) primary key, Created date) with the a lot of data
Want to get hourly record counts For example.
5/13/2011
hour    count
0 to 1, 5 records
1 to 2 , 10 records
....
8 to 9 , 1000 records
9 to 10, 5000 reocrds
....
23 to 24, 12 records
5/14/2011
....
ASKER CERTIFIED SOLUTION
Avatar of MrNed
MrNed
Flag of Australia image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of jl66

ASKER

Thanks a lot.