|
CSCI A114 / INFO I111
|
This query appears solved in section "What is a subquery?" in the Review Notes. Also in the "Using ANY and ALL" section.
This query is already solved in the Review Notes, in the section called "Using Comparison Operators with Subqueries"
For this query assume we talk about the capacity of a section (the max enrollment instead of the actual enrollment). The query is solved already in the Review Notes, in "Using Comparison Operators with Subqueries."
Solved, explained, done - in "Using ANY and ALL".
Solved, explained, done - in "Using ANY and ALL".
Done, in "Correlated Subqueries", twice.
Section "Correlated Subqueries" contains the solution to this problem.
SELECT DISTINCT course_name
FROM COURSES stuff
WHERE 'M' = ALL (
SELECT _____
FROM ENROLLS, STUDENTS
WHERE ENROLLS.[student#] = STUDENTS.[student#]
AND ENROLLS.[course#] = stuff.[course#]
);
Solved in "Using HAVING with Correlated Subqueries", in the Review Notes. Already there.
Extrenely similar to the one above.
A114/I111