Hello,
I am missing data in my payroll query and I am not sure why. Here is my SQL statement:
I tried to change my "join types" in my relationships and that didn't seem to add the missing dates of the records I am missing for the employees. Please help. Thank you!
I am missing data in my payroll query and I am not sure why. Here is my SQL statement:
Code:
SELECT Payroll.[Emp Name], Payroll.[Piece Price ID], Payroll.Date, ([Lunch Out]-[Lunch In])*24 AS Lunch, (([End Time]-[StartTime])*24)-[Lunch] AS TotalHours, [TotalHours]*[Hourly Rate] AS [Day Amount], [Projected Piece Total].[Projected Total], [Projected Total]-[Day Amount] AS [Piece Price Balance] FROM (Employees INNER JOIN Payroll ON Employees.[Employee ID]=Payroll.[Emp Name]) INNER JOIN [Projected Piece Total] ON (Payroll.[Piece Price ID]=[Projected Piece Total].[Piece Price ID]) AND (Employees.[Employee ID]=[Projected Piece Total].[Employee ID]);
Comment