Gate CS-2015-3 Question Paper With Solutions

Q. 23 Consider the following relation

  Cinema (theater, address, capacity)

Which of the following options will be needed at the end of the SQL query

SELECT P1. address
FROM Cinema P1

Such that it always finds the addresses of theaters with maximum capacity?

(A) WHERE P1. Capacity> = All (select P2. Capacity from Cinema P2)

(B) WHERE P1. Capacity> = Any (select P2. Capacity from Cinema P2)

(C) WHERE P1. Capacity > All (select max(P2. Capacity) from Cinema P2)

(D) WHERE P1. Capacity > Any (select max (P2. Capacity) from Cinema P2)

Answer: (A)

Explanation:

Gate CS-2015-3 Question Paper With Solutions

Learn More:   Gate ME-2003 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here