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 COMPcid COMP
Find the names and majors of the students who are enrolled in COMP
Find the names of all junior students level JR who are enrolled in some class taught by
iTeach fname iTeach
Find the ids of the students who are enrolled in COMP or COMP
Find the names of the students who are enrolled in COMP or COMP
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
