I am running this query below, but not getting what I'm after. I want to get aggregrate information. For any instructor who is or has taught more than one class in one semester, I want to list that facid, the count of the classes, and a sum of the curenrol for the class.
My results give me the facid for each class section and each semester. I'm not properly grouping this by sections and semester dates.
SELECT Faculty.FacId, Section.SectNumb, Section.SemDate
FROM (Faculty
INNER JOIN [Section] ON Faculty.FacId = Section.FacId) INNER JOIN Enroll ON (Section.SemDate = Enroll.SemDate) AND (Section.SectNumb = Enroll.SectNumb)
WHERE (((Enroll.SectNumb)>"1") AND ((Enroll.SemDate)>1))
GROUP BY Faculty.FacId, Section.SectNumb, Section.SemDate;
My results give me the facid for each class section and each semester. I'm not properly grouping this by sections and semester dates.
SELECT Faculty.FacId, Section.SectNumb, Section.SemDate
FROM (Faculty
INNER JOIN [Section] ON Faculty.FacId = Section.FacId) INNER JOIN Enroll ON (Section.SemDate = Enroll.SemDate) AND (Section.SectNumb = Enroll.SectNumb)
WHERE (((Enroll.SectNumb)>"1") AND ((Enroll.SemDate)>1))
GROUP BY Faculty.FacId, Section.SectNumb, Section.SemDate;