SQL
October 4, 2023Database-Management-System
October 4, 2023SQL
Question 17 |
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
Titles of the four most expensive books
| |
Title of the fifth most inexpensive book | |
Title of the fifth most expensive book
| |
Titles of the five most expensive books |
Question 17 Explanation:
Which results titles of the five most expensive books.
The where clause of outer query will be true for 5 most expensive books.
The where clause of outer query will be true for 5 most expensive books.
Correct Answer: D
Question 17 Explanation:
Which results titles of the five most expensive books.
The where clause of outer query will be true for 5 most expensive books.
The where clause of outer query will be true for 5 most expensive books.
Subscribe
Login
0 Comments