P
pam
I am trying to calculate "Total Hrs per Student" by adding (across the row)
the duration which is the number of hours a student spends per session with a
coach for each student (114 students), then assign the student and hrs to the
appropriate coach in order to calculate "Total Hrs per Coach" (13 coaches)
and last calculate a Grand Total of the durations for a "Total Hours for
Billing Period"
Table Heading:
StudentID#=Primary Key/ Student Name / Coach Name / Duration 1 / Duration 2
/ Duration 3 / Duration 4 / Duration 5 / Total Hours for Billing Period /
Total Hrs per Coach / Total Hrs per Student.
SQL:
SELECT 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 Coach], Mastersheet.[Total Hrs per Student], Mastersheet.[Total Hours for
Billing Period]
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 Coach], Mastersheet.[Total Hrs per Student],
Mastersheet.[Total Hours for Billing Period];
Is this feasible in a query? If so would someone help me?
the duration which is the number of hours a student spends per session with a
coach for each student (114 students), then assign the student and hrs to the
appropriate coach in order to calculate "Total Hrs per Coach" (13 coaches)
and last calculate a Grand Total of the durations for a "Total Hours for
Billing Period"
Table Heading:
StudentID#=Primary Key/ Student Name / Coach Name / Duration 1 / Duration 2
/ Duration 3 / Duration 4 / Duration 5 / Total Hours for Billing Period /
Total Hrs per Coach / Total Hrs per Student.
SQL:
SELECT 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 Coach], Mastersheet.[Total Hrs per Student], Mastersheet.[Total Hours for
Billing Period]
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 Coach], Mastersheet.[Total Hrs per Student],
Mastersheet.[Total Hours for Billing Period];
Is this feasible in a query? If so would someone help me?