1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
|
" codeBody "
SELECT tblEmployee.employeeLastName + „,“ + tblEmployee.employeeFirstName ALS empFullName, SOM (DATEDIFF („h“, Formaat (tblProduction.startDate,
„korte datum“) + „„+ tblStartTime. [tijd], Formaat (tblProduction.endDate, „korte datum“) +““ + tblEndTime. [tijd])) ALS totalHours, tblProducts.sam,
tblProduction.totalProduced, tblTeams.teamName, tblTeams.teams_ID,
(UITGEZOCHTE TELLING (tblTeamMembers.employee_ID) ALS teamCount
VAN tblTeamMembers
WAAR tblTeamMembers.teams_Id = tblTeams.teams_ID)
VAN (tblEmployee JUISTE TREEDT BUITEN TOE
(((((tblTeamMembers BINNEN TREDEN toe
tblTeams toe OP tblTeamMembers.teams_Id = tblTeams.teams_ID) TREDEN BINNEN
tblProduction OP tblTeams.teams_ID = tblProduction.teams_ID) BINNEN TREEDT toe
tblProducts toe OP tblProduction.product_ID = tblProducts.product_ID) TREDEN BINNEN
tblTime tblStartTime toe OP tblProduction.startTime = tblStartTime.time_ID) TREDEN BINNEN
tblTime tblEndTime OP tblProduction.endTime = tblEndTime.time_ID) OP tblEmployee.employee_ID = tblTeamMembers.employee_ID)
GROEP DOOR tblEmployee.employeeLastName + „,“ + tblEmployee.employeeFirstName, tblProducts.sam, tblProduction.totalProduced, tblTeams.teamName,
tblTeams.teams_ID
ORDE DOOR tblEmployee.employeeLastName + „,“ + tblEmployee.employeeFirstName
|