I will appreciate any help with the following:
ID------PNO---ACTIONID--DAY----MONTH----YEAR
144 756 1 26 4 2005
145 756 2 27 4 2005
146 756 3 29 4 2005
147 756 4 30 4 2005
148 756 5 31 4 2005
149 756 6 1 5 2005
150 444 1 2 5 2005
151 444 2 4 5 2005
152 444 3 9 5 2006
153 444 4 11 5 2006
154 444 5 17 5 2006
155 444 6 22 5 2006
I need to show the duration takes to go from
an action ID to the next one. For example
I have two PNO one is 756 and the other 444
well for 756 I should get something like this:
PNO=756
ActionID= 1 took 1 day (note: 27/04/2005 - 28/04/2005)
ActionID= 2 took 2 days (note: 29/04/2005-27/04/2005)
Please if you have some idea let me know I will appreciate it.
Thanks
ID------PNO---ACTIONID--DAY----MONTH----YEAR
144 756 1 26 4 2005
145 756 2 27 4 2005
146 756 3 29 4 2005
147 756 4 30 4 2005
148 756 5 31 4 2005
149 756 6 1 5 2005
150 444 1 2 5 2005
151 444 2 4 5 2005
152 444 3 9 5 2006
153 444 4 11 5 2006
154 444 5 17 5 2006
155 444 6 22 5 2006
I need to show the duration takes to go from
an action ID to the next one. For example
I have two PNO one is 756 and the other 444
well for 756 I should get something like this:
PNO=756
ActionID= 1 took 1 day (note: 27/04/2005 - 28/04/2005)
ActionID= 2 took 2 days (note: 29/04/2005-27/04/2005)
Please if you have some idea let me know I will appreciate it.
Thanks