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

PYQ GATE 2015

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 333 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…