Suppose there is column as shown below.
How to subtract record from previous record. for example the first record from second record and so on and then store in third column. As these are date values I want results in this format: 1d:1h:46m
Thanks
Suppose there is column as shown below.
How to subtract record from previous record. for example the first record from second record and so on and then store in third column. As these are date values I want results in this format: 1d:1h:46m
Thanks
You can use
PRECEDING
:If you don't need to partition by anything, just leave out the
partition by