TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
mohammad qasim
NA
408
0
sap.net with c# and sqlserver
Mar 29 2010 9:17 AM
I m using sqlserver there is table name of Attendence
Columns of Tables are
1)EmpCode int
2)AttendenceDate datetime
3)AttendenceTime Datetime
4)status tinyint
Data in table would be like this
Code AttendenceDate AttendenceTime status
1001 3/27/2009 3/27/2009 9:05 1
1001 3/27/2009 3/27/2009 7:05 0
1002 3/28/2009 3/27/2009 10:05 1 //user didnot checkout
1003 3/29/2009 3/27/2009 7:05 1
1003 3/29/2009 3/27/2009 7:05 0
1001 3/30/2009 3/27/2009 7:05 1
1001 3/30/2009 3/27/2009 7:05 0
1003 3/29/2009 3/27/2009 7:05 0 //User didnot checkin
when we find "1" in staus it means its checkin and "0" means Check out
i have to make query to show the result like this
Code date Time in Time out
1001 3/27/2009 9:05 7:05
basically i get this data inform of txt file which is generated by machine .where user check in it stores the data and he may go for outdoor work to get late not to come back to check out ...
How to make a perfect and happy query for it
Thanks in advance
waiting
Reply
Answers (
0
)
Find length of service from date of joining
calculating time duration