Hello,
I have a fact table which has a column called TimeDiff and will contain the time difference b/w the two adjacent rows in another column called TimeCol. Assume TimeCol has the following entries:
TimeCol
2002-09-05 14:12:00
2002-09-05 14:12:05
2002-09-05 14:12:09
2002-09-05 14:12:45
Then the column TimeDiff will be:
TimeDiff
0
5
4
36
Please can someone give me an idea on how to implement it. The TimeCol has upto 1200 rows.
Thanks,
Jony
I have a fact table which has a column called TimeDiff and will contain the time difference b/w the two adjacent rows in another column called TimeCol. Assume TimeCol has the following entries:
TimeCol
2002-09-05 14:12:00
2002-09-05 14:12:05
2002-09-05 14:12:09
2002-09-05 14:12:45
Then the column TimeDiff will be:
TimeDiff
0
5
4
36
Please can someone give me an idea on how to implement it. The TimeCol has upto 1200 rows.
Thanks,
Jony