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:
- A.
Find the pids of less expensive parts supplied by the wholesaler named KnowledgeGate.
- B.
Find the pids of parts whose cost is more than the cost of parts not supplied by the wholesaler named KnowledgeGate.
- C.
Find the pids of parts whose cost is less than the cost of parts supplied by the wholesaler named KnowledgeGate.
- 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 freeLoading lesson…

