Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT Drivers.DriverID, [Driver-Data].DriverName, Drivers.Shift, Drivers.LocationID,
Count(Drivers.NickName) AS CountOfNickName, Sum([Driver-Data].GrossProfit) AS SumOfGrossProfit,
Avg([Driver-Data].GrossProfit) AS AvgOfGrossProfit, Sum([Driver-Data].[Shift Time]) AS [SumOfShift Time],
Avg([Driver-Data].[Shift Time]) AS [AvgOfShift Time], Sum([Driver-Data].Mileage) AS SumOfMileage,
Avg([Driver-Data].Mileage) AS AvgOfMileage, Sum([Driver-Data].Stops) AS SumOfStops,
Avg([Driver-Data].Stops) AS AvgOfStops, Sum([Driver-Data].[Gallons Delivered]) AS [SumOfGallons Delivered],
Avg([Driver-Data].[Gallons Delivered]) AS [AvgOfGallons Delivered], [Driver-Data].[PayRoll Period]
FROM Drivers INNER JOIN [Driver-Data] ON Drivers.NickName = [Driver-Data].DriverName
WHERE [Driver-Data].[PayRoll Period]=[Enter PayRoll Period: ]
GROUP BY Drivers.DriverID, [Driver-Data].DriverName, Drivers.Shift,
Drivers.LocationID, [Driver-Data].[PayRoll Period]
ORDER BY [Driver-Data].DriverName;
Sum([Driver-Data].GrossProfit)/Sum([Driver-Data].Mileage) AS GP_M