Consider the following relations: Student(snum: integer, sname: string, major:…

Consider the following relations:

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 following query is executed on above relations : SELECT DISTINCT F.fname FROM Faculty F WHERE 6 > (SELECT COUNT (E.snum) FROM Class C, Enrolled E WHERE C.name = E.cname AND C.fid = F.fid )

The output of above Query is ?

  1. A.

    Distinct Name is the faculty for whom the combined enrollment of the course that they teach is greater than six.

  2. B.

    Distinct Name of the faculty for whom the combined enrollment of the course that they not teach is greater than six

  3. C.

    Distinct Name of the faculty for whom the combined enrollment of the course that they teach is less than six.

  4. D.

    The Query give the Syntax Error.

Attempted by 178 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…