I need help with a query where I have billable and non billable hours.
I would like the query to return a field with the total of billable hours says 35 and then the total hours say is 40 and the percent of billable which is 40/35 * 100 or 87.5
Name, Week End Date, Billable Hrs, Total Hours, Percent of Billable
Doug 1/25/08 35 40 87.5
TIA
DougP
I would like the query to return a field with the total of billable hours says 35 and then the total hours say is 40 and the percent of billable which is 40/35 * 100 or 87.5
Name, Week End Date, Billable Hrs, Total Hours, Percent of Billable
Doug 1/25/08 35 40 87.5
Code:
SELECT [TimeSheet Details].[Employee Name], [TimeSheet Details].WeekEndDate, Sum([TimeSheet Details].Hours) AS SumOfHours
FROM [TimeSheet Details]
GROUP BY [TimeSheet Details].[Employee Name], [TimeSheet Details].WeekEndDate
HAVING ((([TimeSheet Details].[Employee Name])="xxxx") AND (([TimeSheet Details].WeekEndDate)=#1/25/2008#));
TIA
DougP