P
pam
I'm trying to design a query that will give me total hrs by adding the
"duration" for coaching hours used as well as hrs per student. There are
thirteen coaches so I need totals for each coach as well as totals per
student. But, only some of the rows give me a total. I imported the file from
excel where the formula is already in place.
SELECT Mastersheet.ID, Mastersheet.[Student Name], Mastersheet.[Coach Name],
Mastersheet.[Duration 1], Mastersheet.[Duration 2], Mastersheet.[Duration 3],
Mastersheet.[Duration 4], Mastersheet.[Duration 5], Sum(Mastersheet.[Total
Coaching Hours Used]) AS [SumOfTotal Coaching Hours Used],
Mastersheet.[SumOfTotal Hrs per Student]
FROM Mastersheet
GROUP BY Mastersheet.ID, Mastersheet.[Student Name], Mastersheet.[Coach
Name], Mastersheet.[Duration 1], Mastersheet.[Duration 2],
Mastersheet.[Duration 3], Mastersheet.[Duration 4], Mastersheet.[Duration 5],
Mastersheet.[Total Hrs per Student];
"duration" for coaching hours used as well as hrs per student. There are
thirteen coaches so I need totals for each coach as well as totals per
student. But, only some of the rows give me a total. I imported the file from
excel where the formula is already in place.
SELECT Mastersheet.ID, Mastersheet.[Student Name], Mastersheet.[Coach Name],
Mastersheet.[Duration 1], Mastersheet.[Duration 2], Mastersheet.[Duration 3],
Mastersheet.[Duration 4], Mastersheet.[Duration 5], Sum(Mastersheet.[Total
Coaching Hours Used]) AS [SumOfTotal Coaching Hours Used],
Mastersheet.[SumOfTotal Hrs per Student]
FROM Mastersheet
GROUP BY Mastersheet.ID, Mastersheet.[Student Name], Mastersheet.[Coach
Name], Mastersheet.[Duration 1], Mastersheet.[Duration 2],
Mastersheet.[Duration 3], Mastersheet.[Duration 4], Mastersheet.[Duration 5],
Mastersheet.[Total Hrs per Student];