sherikream
Registered User.
- Local time
- Today, 18:44
- Joined
- Mar 27, 2013
- Messages
- 14
Hi Everyone,
I'm trying to create a query that returns a count of courses a student has taken, ONLY if they've taken ALL the courses in a specified list, not if they've taken any one of the course in a list. If they're missing even one course from the list, they should not show up when I run the query.
I've tried adding multiple IN criteria in the same field using AND, but the run comes back empty. I've also tried adding IN criteria for the same field in separate columns for each course in the design view, run also comes back empty.
Help is appreciated, Thank you.
I'm trying to create a query that returns a count of courses a student has taken, ONLY if they've taken ALL the courses in a specified list, not if they've taken any one of the course in a list. If they're missing even one course from the list, they should not show up when I run the query.
I've tried adding multiple IN criteria in the same field using AND, but the run comes back empty. I've also tried adding IN criteria for the same field in separate columns for each course in the design view, run also comes back empty.
Code:
SELECT Courses.ID, Count(Courses.CourseID) AS CountOfCourseID
FROM Courses
WHERE (((Courses.CourseID) In ("089922") And (Courses.CourseID) In ("090589","090590")))
GROUP BY Courses.ID;
Last edited: