SQL - Difference between odd/even columns into another column
问题 I have a table which consists of the following data. Employee TimeRegister1 TimeRegister2 TimeRegister3 TimeRegister4 77 2014-04-01 11:51:43.000 2014-04-01 14:03:52.000 2014-04-01 14:17:01.000 2014-04-01 16:01:12.000 77 2014-04-03 09:48:33.000 2014-04-03 12:13:43.000 2014-04-03 12:22:27.000 2014-04-03 14:03:43.000 181 2014-04-02 08:24:34.000 2014-04-02 13:01:10.000 2014-04-02 14:30:31.000 2014-04-02 18:04:04.000 What I need is to write, on another column, the total calculated from the