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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cumulative montly values from SQL?

Status
Not open for further replies.

connel81

Programmer
Oct 29, 2003
1
FI
Hi,

I'm trying to create a chart object, and it gets its details from a table that contains two fields:

-Job Date
-Hours

I want the chart to be grouped by the month, but i want the sum of the hours to be cumulatively displayed as the months progress, rather than the sum of the hours being displayed for just THAT month!

In other words, the data that should be returned:

Month sum of hours
Jan 7
Feb 15 (7+8)
Mar 20 (7+8+5)

I'm trying to find the right SQL statement to apply as the data source for the chart. Please help Meeeeeeee!!!!!

thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top