SELECT tblEmployee.employeeLastName + "," + tblEmployee.employeeFirstName JAKO empFullName, SUMA (DATEDIFF ("h", Format (tblProduction.startDate,
"krótki data ") + '' + tblStartTime. [czas], Format (tblProduction.endDate, "krótki data ") + '' + tblEndTime. [czas])) JAKO totalHours, tblProducts.sam,
tblProduction.totalProduced, tblTeams.teamName, tblTeams.teams_ID,
(WYBRANY OBLICZENIE (tblTeamMembers.employee_ID) JAKO teamCount
OD tblTeamMembers
DOKĄD tblTeamMembers.teams_Id = tblTeams.teams_ID)
OD (tblEmployee PRAWY ZEWNĘTRZNY ŁĄCZYĆ
(((((tblTeamMembers WEWNĘTRZNY ŁĄCZYĆ
tblTeams NA tblTeamMembers.teams_Id = tblTeams.teams_ID) WEWNĘTRZNY ŁĄCZYĆ
tblProduction NA tblTeams.teams_ID = tblProduction.teams_ID) WEWNĘTRZNY ŁĄCZYĆ
tblProducts NA tblProduction.product_ID = tblProducts.product_ID) WEWNĘTRZNY ŁĄCZYĆ
tblTime tblStartTime NA tblProduction.startTime = tblStartTime.time_ID) WEWNĘTRZNY ŁĄCZYĆ
tblTime tblEndTime NA tblProduction.endTime = tblEndTime.time_ID) NA tblEmployee.employee_ID = tblTeamMembers.employee_ID)
GRUPA TblEmployee.employeeLastName + "," + tblEmployee.employeeFirstName, tblProducts.sam, tblProduction.totalProduced, tblTeams.teamName,
tblTeams.teams_ID
ROZKAZ TblEmployee.employeeLastName + "," + tblEmployee.employeeFirstName
|