straybullet
IS-IT--Management
Have the following:
PropID EventDate EvtType
5 10/4/2005 CMA
5 10/10/2005 LDM
5 3/17/2006 LDR
5 3/17/2006 SIR
5 3/30/2006 AVL
5 3/30/2006 SIR
5 4/24/2006 PND_HC
5 6/26/2006 CLS
How do I (or is it even possible to do...) calculate the number of days between each event? How do I determine the "next record"?
For instance:
PropID EventDate EvtType DaysDiff
5 10/4/2005 CMA 0
5 10/10/2005 LDM 6
5 3/17/2006 LDR 158
5 3/17/2006 SIR 0
5 3/30/2006 AVL 13
5 3/30/2006 SIR 0
5 4/24/2006 PND_HC 25
5 6/26/2006 CLS 63
Let them hate - so long as they fear... Lucius Accius
PropID EventDate EvtType
5 10/4/2005 CMA
5 10/10/2005 LDM
5 3/17/2006 LDR
5 3/17/2006 SIR
5 3/30/2006 AVL
5 3/30/2006 SIR
5 4/24/2006 PND_HC
5 6/26/2006 CLS
How do I (or is it even possible to do...) calculate the number of days between each event? How do I determine the "next record"?
For instance:
PropID EventDate EvtType DaysDiff
5 10/4/2005 CMA 0
5 10/10/2005 LDM 6
5 3/17/2006 LDR 158
5 3/17/2006 SIR 0
5 3/30/2006 AVL 13
5 3/30/2006 SIR 0
5 4/24/2006 PND_HC 25
5 6/26/2006 CLS 63
Let them hate - so long as they fear... Lucius Accius