I'm trying to get a count of ethnicity for a teachers students. My first table contains the student number and ethnicity. The second table contains teacher id's, student numbers, course numbers, and etc... Each student can have a teacher more than 1 time.
Here's my query that is returning duplicate counts:
SELECT DISTINCT Count(StudentsSDRC.Ethnicity) AS CountOfEthnicity,
StudentsSDRC.Ethnicity
FROM StudentsSDRC
LEFT JOIN TeacherStudents
ON StudentsSDRC.StudentNum = TeacherStudents.StudentNum
WHERE (((TeacherStudents.teacherDCID)=43652))
GROUP BY StudentsSDRC.Ethnicity
Any help would be great.