Link to home
Start Free TrialLog in
Avatar of motioneye
motioneyeFlag for Singapore

asked on

How do I subtract date and time within a same column in SQL

How do I subastract row 1- row2, etc.. within a same column to find a gap between the two row? I know how to do this via sql  if between two column, but in my case all within a same column.


2017-01-31 08:37:59.690
2017-01-31 08:35:59.687
2017-01-31 08:33:59.690
2017-01-31 08:31:59.693
2017-01-31 08:29:59.700
ASKER CERTIFIED SOLUTION
Avatar of Pawan Kumar
Pawan Kumar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of motioneye

ASKER

Thanks Pawan ;)
Welcome ! Glad to help!