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 schemarewrite 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!