Hello, I have a query that returns labor hours from a table. I want to multiply the fields OT and DT by 1.5 and 2 respectively.
Here's my sql
thanks Jim
Here's my sql
Code:
SELECT tblContractor.Contractor, tblJobs.JobName, tblHours.ST, tblHours.OT, tblHours.DT, tblHours.Shift, tblHours.WorkDate, DatePart("q",[WorkDate]) AS Cquarter, Format([WorkDate],"ww",2) AS Cweek, tblContractor.tblContractorID, tblHours.ST AS PensionS, tblHours.OT AS PensionOT
FROM (tblContractor INNER JOIN tblJobs ON tblContractor.tblContractorID = tblJobs.Contractor_ID) INNER JOIN tblHours ON tblJobs.tblJobs_ID = tblHours.Jobs_ID
GROUP BY tblContractor.Contractor, tblJobs.JobName, tblHours.ST, tblHours.OT, tblHours.DT, tblHours.Shift, tblHours.WorkDate, DatePart("q",[WorkDate]), Format([WorkDate],"ww",2), tblContractor.tblContractorID, tblHours.ST, tblHours.OT
ORDER BY tblHours.WorkDate, DatePart("q",[WorkDate]);