This is My First Condition. suppose CheckIn Time is Greater Than Check Out Time so How Can I calculate Time Duration
StaffName | attendDate| staffid| firmId| Shiftname | AttendId| CheckIn| CheckOut | Total Duration
---------------------------------------------------------------------------------------------
Kiran A Veri | 2017-03-28 |5146 |1 | Night | 34584 |18:00:00| 03:00:00 | 09:00:00
This is my second condition. If check in time is less than checkout time so how to manage both condition in this Query?
StaffName | attendDate| staffid| firmId| Shiftname | AttendId| CheckIn| CheckOut | Total Duration
---------------------------------------------------------------------------------------------
Ritesh B Patel | 2017-03-28 |5146 |1 | General | 34584 |10:06:06| 19:35:46 | 09:29:00

CheckInandCheckOutcolumns?