Question-42

DBMS

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