So, I've created a simple database for tracking In-Service hours for the lifeguards at my facility. Only three tables, one for the Employees, one that holds the information about each class, and an Enrollment table that combines ClassID's and EmployeeID's.
I need a query that will tell me how many Hours (from the Classes table) each employee has. My solution was to create a table that included EmployeeID from the EmployeeTable and the Hours from the Classes table, and to use the Sum aggregate function.
Which works great, with one exception... The query only shows EmployeeID's that have having matching information in SumOfHours (which is how I now know that aggregate functions work).
Can anyone suggest a solution or work around?
I need a query that will tell me how many Hours (from the Classes table) each employee has. My solution was to create a table that included EmployeeID from the EmployeeTable and the Hours from the Classes table, and to use the Sum aggregate function.
Which works great, with one exception... The query only shows EmployeeID's that have having matching information in SumOfHours (which is how I now know that aggregate functions work).
Can anyone suggest a solution or work around?