Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Getting the total no request created in Hours

Author  Topic 

prakashuj
Starting Member

12 Posts

Posted - 2007-12-04 : 01:32:58
Dear All

I want to get the total no of records created in a hour.

If i pass a date then i want to get output like this

9-10 10-11 12-13 13-14
2 6 4 8

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-12-04 : 01:45:12
Read about Cross-tab reports in sql server help file

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

prakashuj
Starting Member

12 Posts

Posted - 2007-12-04 : 01:49:04
Sorry i want the output like this

Hours TotalRequest
9-10 2
10-11 5
11-12 1
12-13 6
13-14 8
Go to Top of Page
   

- Advertisement -