The relation book (title, price) contains the titles and prices of different…

PYQ GATE 2005

The relation book (title, price) contains the titles and prices of different books. Assuming that no two books have the same price, what does the following SQL query list?

select title
from book as B
where (select count(*)
       from book as T
       where T.price > B.price) < 5
  1. A.

    Titles of the four most expensive books

  2. B.

    Title of the fifth most inexpensive book

  3. C.

    Title of the fifth most expensive book

  4. D.

    Titles of the five most expensive books

Attempted by 592 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…