Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Other SQL Server 2008 Topics
 How To Calculate Employee IN time and OUT time ?

Author  Topic 

aajitm
Starting Member

1 Post

Posted - 2015-04-23 : 03:02:50
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



ajit

MichaelJSQL
Constraint Violating Yak Guru

252 Posts

Posted - 2015-04-23 : 07:49:59
Post the DDL for the 2+ tables.
Go to Top of Page
   

- Advertisement -