R
Robin
I have a table that has one row per email sent in by a student, organized by
the class they attend. I would like to count the number of students that have
sent in emails per class. I can't seem to get my brain around this, and what
I get every time is either the number of emails per class or the number of
emails per student.
My Table: [Publish Table]
Columns: [Course Name] = name of class,[People ID]=identifier for the
student,[Email ID]=identifier for the email in a different table
I've tried this query - gives me a row per student and the number of emails
for the student. Tried putting in DISTINCT and DISTINCTROW to no avail.
SELECT [Course Name], Count([People ID]) as CountPeople
FROM [Publish Table]
GROUP BY [Course Name],[People ID]
Instead I'd like to know how many students sent emails.
Help!
the class they attend. I would like to count the number of students that have
sent in emails per class. I can't seem to get my brain around this, and what
I get every time is either the number of emails per class or the number of
emails per student.
My Table: [Publish Table]
Columns: [Course Name] = name of class,[People ID]=identifier for the
student,[Email ID]=identifier for the email in a different table
I've tried this query - gives me a row per student and the number of emails
for the student. Tried putting in DISTINCT and DISTINCTROW to no avail.
SELECT [Course Name], Count([People ID]) as CountPeople
FROM [Publish Table]
GROUP BY [Course Name],[People ID]
Instead I'd like to know how many students sent emails.
Help!