Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate Average Cases per month

Status
Not open for further replies.

ashab02

Programmer
Jun 28, 2005
87
GB
Hello

I have a set of data for a year (2006) and I have a specific column which is a date field. This date field is the date the case was passed to us.

I would like now to create an average using this date field to give me a figure for 'Average number of cases per month'.

I was wondering how I would use this. I have built my quries using views and GUI of SQL Server.

I was thinking getting a count of the cases and then dividing by twelve. Not sure if this will work.

Can someone help please?

Shab
 
count / 12 should work. Try it out and let us know. If it doesn't work, please post the query to make things a little easier.

Hope this helps,

Alex

Ignorance of certain subjects is a great part of wisdom
 
Hello

Thats what I thought.

Thanks for the reply

If anyone else has any other ideas then please let me know

Shab
 
So, did it not work?

Ignorance of certain subjects is a great part of wisdom
 
sorry i wont be able to test till tommorrow

I'll let you know tommorrow morning.

thanks for help so far
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top