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

Running Difference Of Dates

Status
Not open for further replies.

billhayes

Programmer
Feb 6, 2002
7
US
Is there a way to get the difference of dates for consecutive records for a grouping.
Example:
Customer Service Date DaysBetweenService
Bill 1/1/03 Null
Bill 1/5/03 4
Bill 1/30/03 25
Joe 1/15/03 Null
Joe 1/30/03 15
 
Answered my own question. After reading some more documantation came across LAG function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top