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

Sum of minutes

Status
Not open for further replies.

tjw2006

Programmer
Joined
Nov 16, 2006
Messages
103
Location
GB
Hi, I've got a report that shows instances of an occurrences by minute, hours, day - what I'm trying to do is, if there is a group of consecutive minutes, to sum these up, but only if they're consecutive - any ideas on how to do this? I'm trying to avoid cursors if I possibly can!

Thanks
 
I'm using SQL 2000 by the way!
 
We need some sample data and desired ouput in order to help you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top