Hi everyone,
I have a SQL table like this
Events time endTime Tram 2014-11-28 12:35:50.390 2014-11-28 12:43:19.120 Re-Entry 2014-11-28 12:43:19.120 2014-11-28 12:56:07.040 Tram 2014-11-28 12:56:07.040 2014-11-28 13:15:25.060 // EndDate Before dump Dump 2014-11-28 13:15:25.060 2014-11-28 13:50:07.233 Tram 2014-11-28 13:50:07.233 2014-11-28 13:55:17.473 Load 2014-11-28 13:55:17.473 2014-11-28 14:06:55.063 Tram 2014-11-28 14:06:55.063 2014-11-28 14:37:12.100 Dump 2014-11-28 14:37:12.100 2014-11-28 14:37:12.100
I want to calculate the Difference between 2 dates like endtime
before Dump -
time
I am expecting output like this
Row1 Row2
1
00:39:34//2014-11-28 13:15:25.060-2014-11-28
12:35:50.390
2 23:12:55//2014-11-28
13:50:07.233-2014-11-28
14:37:12.100
You can find the details in SQL Fiddle he