Consider the following relation Cinema(theater, address, capacity) Which of…

GATE · 2015 · CS · Set 3 · Computer Science & IT

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?

  1. A.

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

  2. B.

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

  3. C.

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

  4. D.

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

Attempted by 275 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…