x

Monthly Time and Attendane by Shift with present absent and late..

Table 1 : STP_Employee

 EmpID
 Name
 ShiftID
 etc..

Table 2 : ATT_Attendance

 AttendanceID
 EmpID
 Date (Datetime)
 TimeIn (Datetime)
 TimeOut (Datetime)

Table 3 : STP_Shift

 ShiftID
 ShiftTitle
 WorkDays (Monday,Tuesday,Wednesday,Thursday,Friday,Saturday)
 TotalWorkHours ( diffrence between RegularWorkHourFrom and RegularWorkHourTo)
 RegularWorkHourFrom
 RegularWorkHourTo

Note : In Shift table 6 rows exist from monday to saturday. Sunday is holiday. Each row has same data like total work hours , regular work hours from and to...

now i want to calculate monthly attendance report with shift roaster and it should calculate overtime and late attendance....

Expected OutPut :

 Empid 1 2 3 4 5 6 7 8 ......
 Emp-1,P P A P P P A

P: Present, A: Absent

more ▼

asked Nov 16, 2016 at 09:20 AM in Default

avatar image

ShahPak
1

(comments are locked)
10|1200 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x385
x112
x7

asked: Nov 16, 2016 at 09:20 AM

Seen: 46 times

Last Updated: Nov 16, 2016 at 12:40 PM

Copyright 2017 Redgate Software. Privacy Policy