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
 SQL Server 2000 Forums
 Transact-SQL (2000)
 calls logged before a time

Author  Topic 

jamie
Aged Yak Warrior

542 Posts

Posted - 2006-09-26 : 10:56:50
Hi, I am trying to display some data via TSQL and can't seem to do it..
what I need is this:

JAN FEB MAR APR
23 12 3 10

The numbers represent the number of helpdesk calls logged before each month..( at the beginning of each month )
how can I do this ?
The fields I have is logdate and closedate

I don't want to use and parameters other than Financial Year, so I will end up with a long list of numbers idealy from April 2005 to April 2006.

can anybody help me ?
thank you

Westley
Posting Yak Master

229 Posts

Posted - 2006-09-26 : 11:09:03
Hi jamie,
Datename should do it, take a look at BOL.


Go to Top of Page

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2006-09-26 : 12:44:09
How about some sample data and expected results? Your requirements are also not clearly defined, so explaining a little more detail about what numbers you need and exactly how they should be calculated would help us to help you much easier.

- Jeff
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2006-09-26 : 13:19:31
Read the hint link in my sig, but I don't think It's gonna be a straight forward solution for this



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam
Go to Top of Page

jamie
Aged Yak Warrior

542 Posts

Posted - 2006-09-27 : 04:51:14
Brett, I can't find what you mean in your sig ?!

even without doing the financial year part, how could I just count the calls that were open at the beginning of each month.
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-09-27 : 07:13:33
quote:
Originally posted by jamie

Brett, I can't find what you mean in your sig ?!

even without doing the financial year part, how could I just count the calls that were open at the beginning of each month.



Please post your table structure, some sample data and the result that you want.


KH

Go to Top of Page
   

- Advertisement -