Consider the following relation scheme: Wholesaler (sid: integer, sname:…

Consider the following relation scheme:
Wholesaler (sid: integer, sname: string, address: string)
Parts (pid: integer, pname: string, color: string)
Catalog (sid: integer, pid: integer, cost: real)
The following query executed:
SELECT C.pid FROM Catalog C, Wholesaler S WHERE S.sname = 'KnowledgeGate' AND C.sid = S.sid AND
C.cost >= ALL (SELECT C2.cost FROM Catalog C2, Wholesaler S2 WHERE S2.sname = 'KnowledgeGate' AND C2.sid = S2.sid)
The output of above query is:

  1. A.

    Find the pids of less expensive parts supplied by the wholesaler named KnowledgeGate.

  2. B.

    Find the pids of parts whose cost is more than the cost of parts not supplied by the wholesaler named KnowledgeGate.

  3. C.

    Find the pids of parts whose cost is less than the cost of parts supplied by the wholesaler named KnowledgeGate.

  4. D.

    Find the pids of the most expensive parts supplied by the wholesaler named KnowledgeGate.

Attempted by 114 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…