I have a table callled
classdate which contains these fields
dateid
classid
instructor1
instructor2
instructor3
instructorcredit
There can be as many as 3 instructors for one class on any date.
One instructor could teach the same class just on different days.
I wanted to develop a query that summed up the total number of instructorcredits for each employee
the conditions are as follows:
instructor1, instructor2, instructor3 = EmployeeNumber
Only total unique classes (ClassID) no matter what instructor they (1, 2, 3)
Example:
classid = 1
dateid = 1 (date of the class)
instructor1 = 100 (EmployeeNumber)
instructor2 = 101
instructor3 = 102
instructorcredit = 1
classid = 1
dateid = 2
instructor1 = 101
instructor2 = 100
instructorcredit = 1
classid = 1
dateid = 3
instructor1 = 102
instructorcredit = 1
classid = 2
dateid = 4
instructor1 = 100
instructorcredit = 1
so in this example:
total credits for Employee (100) = 2 (1 for classid = 1, and 1 for classid = 2)
total credits for employee (101) = 1 (1 for classid 1)
My question is then, how do i get a query that will show the listing of each employee number, along with the total number of instructorcredits following the criteria above. Thank you for any help.
classdate which contains these fields
dateid
classid
instructor1
instructor2
instructor3
instructorcredit
There can be as many as 3 instructors for one class on any date.
One instructor could teach the same class just on different days.
I wanted to develop a query that summed up the total number of instructorcredits for each employee
the conditions are as follows:
instructor1, instructor2, instructor3 = EmployeeNumber
Only total unique classes (ClassID) no matter what instructor they (1, 2, 3)
Example:
classid = 1
dateid = 1 (date of the class)
instructor1 = 100 (EmployeeNumber)
instructor2 = 101
instructor3 = 102
instructorcredit = 1
classid = 1
dateid = 2
instructor1 = 101
instructor2 = 100
instructorcredit = 1
classid = 1
dateid = 3
instructor1 = 102
instructorcredit = 1
classid = 2
dateid = 4
instructor1 = 100
instructorcredit = 1
so in this example:
total credits for Employee (100) = 2 (1 for classid = 1, and 1 for classid = 2)
total credits for employee (101) = 1 (1 for classid 1)
My question is then, how do i get a query that will show the listing of each employee number, along with the total number of instructorcredits following the criteria above. Thank you for any help.