Question: Student(snum: integer, sname: string, major: string, level: string, age: integer) Class(name: string, meets at: string, room: string, fid: integer) Enrolled(snum: integer, cname: string) Faculty(fid: integer,

Student(snum: integer, sname: string, major: string, level: string, age: integer) Class(name: string, meets at: string, room: string, fid: integer) Enrolled(snum: integer, cname: string) Faculty(fid: integer, fname: string, deptid: integer) The meaning of these relations is straightforward; for example, Enrolled has one record per student-class pair such that the student is enrolled in the class.

Write the following queries in relational algebra NOT SQL. No duplicates should be printed in any of the answers. What is the relational algebra from the question below. I already have the SQL and need it in relational algebra.

5. Find the names of faculty members who teach in every room in which some class is taught.

SELECT DISTINCT F.fname

FROM Faculty F

WHERE NOT EXISTS ( (SELECT *

FROM Class C)

EXCEPT

( SELECT C1.room

FROM Class C1

WHERE C1.fid = F.fid));

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!