I want to display the Student_ID, Section_ID and Enroll_Date from the Enrollment table for the first 10 students to have enrolled in February 2003 (there were actually 25 students that enrolled during 2/2003).
I can select the students that enrolled in 2/2003 but the grouping does not allow me to filter by count. Here's the SQL that is generated:
SELECT Year(Enrollment!Enroll_Date) AS Date_Enroll, Enrollment.Student_Id,
Count(Enrollment.Section_Id) AS CountOfSection_Id
FROM Enrollment
GROUP BY Year(Enrollment!Enroll_Date), Enrollment.Student_Id
HAVING (((Year(Enrollment!Enroll_Date))=2003)
AND ((Count(Enrollment.Section_Id))<11));
Can anyone help?
John
I can select the students that enrolled in 2/2003 but the grouping does not allow me to filter by count. Here's the SQL that is generated:
SELECT Year(Enrollment!Enroll_Date) AS Date_Enroll, Enrollment.Student_Id,
Count(Enrollment.Section_Id) AS CountOfSection_Id
FROM Enrollment
GROUP BY Year(Enrollment!Enroll_Date), Enrollment.Student_Id
HAVING (((Year(Enrollment!Enroll_Date))=2003)
AND ((Count(Enrollment.Section_Id))<11));
Can anyone help?
John