I have a Table with a \"Date\" Column. I want to group by hour for a specific date.
select to_char(datecol,'HH24') thehour, count(*) count_in_hour from tbl where datecol = date '20110224' group by to_char(datecol,'HH24') order by thehour asc