Question: (d) Describe what the following SQL statement does? ( 6 point SELECT UNIQUE(c.title) FROM courses c, students s, registered r WHERE r.code = c.code AND

(d) Describe what the following SQL statement does? ( 6 point SELECT UNIQUE(c.title) FROM courses c, students s, registered r WHERE r.code = c.code AND r.SSN = S.SSN AND c. code = (SELECT c1.code FROM courses c1, students s1, registered r1 WHERE r1.code = c1.code AND r1.SSN=s1.5SN GROUP BY C1.code HAVING COUNT(C1.cOde) >= (SELECT MAX(COUN FROM courses C2, students s2, registered r2 WHERE r2.code = c2. code AND r2.SSN=s2.SSN AND c2.dept s2. dept GROUP BY c2.code))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
