I have a simple report that needs to count how many calls were made per hour grouped by hour. In other words I have 3 calls. One was 1/7/03 11:32, another was 1/7/03 11:36 and the third was 1/7/03 11:44. I want Crystal to show from 1/7/03 11:00 am to 1/7/2003 12:00 pm there were 3 calls. I can do the SQL for it and run it on the server, but I need it in Crystal. I can't get it even close. Any clues?
The SQL is:
Select Count(convert(varchar(13),Starttimeofcall, 121)), convert(varchar(13),Starttimeofcall, 121) from Calls
group by convert(varchar(13),Starttimeofcall, 121)
order by convert(varchar(13),Starttimeofcall, 121) desc
The SQL is:
Select Count(convert(varchar(13),Starttimeofcall, 121)), convert(varchar(13),Starttimeofcall, 121) from Calls
group by convert(varchar(13),Starttimeofcall, 121)
order by convert(varchar(13),Starttimeofcall, 121) desc