Question: rewrite the SQL statement in Relational Algebra Consider the following relation schema and SQL statement: Course(course id, course name, stream) Enrollment(course id, student id) SELECT
rewrite the SQL statement in Relational Algebra
Consider the following relation schema and SQL statement: Course(course id, course name, stream) Enrollment(course id, student id) SELECT student id FROM Enrollment E WHERE E.course id IN ( SELECT C.course id FROM Course C WHERE C.stream = A ) GROUP BY student id HAVING COUNT(*) = ( SELECT COUNT (*) FROM Course C2 WHERE C2.stream = A )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
