How To Calculate Employee IN time and OUT time SQL SERVER ?
Hi,
How To Calculate Employee IN time and OUT time in SQL Server 2008,
Where Date and Time Save in different table.
Also Show Employee Total Working Hrs. and Total Hrs. he outside office after Out.
EmpID EmpName Date Time Status
----- -------- ---- -------- ----------
1001 Raj 23/04/2015 09:30 IN
1001 Raj 23/04/2015 10:30 OUT
1001 Raj 23/04/2015 11:30 IN
1001 Raj 23/04/2015 18:30 OUT
1002 Sachin 23/04/2015 09:30 IN
1002 Sachin 23/04/2015 12:30 OUT
1002 Sachin 23/04/2015 13:30 IN
1002 Sachin 23/04/2015 19:30 OUT