I'm attempting to create a breakdown of requests per hour. As such the date part of the TimeStamp object needs to be ignored. This is what I've tried to far:
select
trunc(request_time, 'HH'),
count(*)
from
service_request
group by
trunc(request_time, 'HH');
This seems to group all data into one hour sections but also groups by the day. How do I go about removing the date part so I end up with results like:
Time Count
--------------
00:00 1
01:00 4
02:00 2