Question: Consider the following relations: Student ( sid: integer, sname: string, major: string, level: string, age: integer ) Class ( cid: string, meet _ at: string,
Consider the following relations:
Studentsid: integer, sname: string, major: string, level: string, age: integer
Classcid: string, meetat: string, room: string, fid: integer
Enrolledsid: integer, cid: string
Facultyfid: integer, fname: string
The meaning of these relations is straightforward. For example, Enrolled has one record per
studentclass pair such that the student is enrolled in the class; each class is taught by a faculty
member identified by fid
Find the ids of the students who are enrolled in both COMP and COMP
Find the names of the students who are enrolled in both COMP and COMP
Find the ids of the students who are not enrolled in COMP
Find the names of the students who are not enrolled in any class.
Find the ids of the students who are enrolled in more than one class.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
