hi,
I am new to sq server, and
I want to calculate the total working hours for all the employees excluding their break. This is the sample table for 2 employes.
logID logDate logTime srno
2 12/19/2011 0:00 1899-12-30 16:36:16.000 933252
2 12/19/2011 0:00 1899-12-30 11:21:20.000 933137
2 12/20/2011 0:00 1899-12-30 15:55:33.000 933636
2 12/20/2011 0:00 1899-12-30 15:55:18.000 933635
2 12/20/2011 0:00 1899-12-30 12:18:25.000 933539
2 12/22/2011 0:00 1899-12-30 16:07:25.000 934472
2 12/22/2011 0:00 1899-12-30 10:47:49.000 934361
2 12/23/2011 0:00 1899-12-30 16:00:55.000 934841
2 12/23/2011 0:00 1899-12-30 11:02:04.000 934734
6 12/19/2011 0:00 1899-12-30 21:15:33.000 933350
6 12/19/2011 0:00 1899-12-30 19:09:05.000 933308
6 12/19/2011 0:00 1899-12-30 18:45:04.000 933298
6 12/19/2011 0:00 1899-12-30 18:43:33.000 933297
6 12/19/2011 0:00 1899-12-30 16:51:43.000 933261
6 12/19/2011 0:00 1899-12-30 16:15:37.000 933244
6 12/19/2011 0:00 1899-12-30 13:57:20.000 933205
6 12/19/2011 0:00 1899-12-30 13:42:36.000 933196
6 12/19/2011 0:00 1899-12-30 12:17:06.000 933149
6 12/20/2011 0:00 1899-12-30 18:55:45.000 933704
6 12/20/2011 0:00 1899-12-30 16:36:05.000 933648
6 12/20/2011 0:00 1899-12-30 14:09:59.000 933601
6 12/20/2011 0:00 1899-12-30 13:41:49.000 933588
6 12/20/2011 0:00 1899-12-30 12:33:03.000 933543
6 12/21/2011 0:00 1899-12-30 18:40:58.000 934110
Thanks in advance