UGC-NET | UGC NET CS 2018 July – II | Question 62
Consider a relation book (title, price) which 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) < 7
(A) Titles of the six most expensive books.
(B) Title of the sixth most expensive books.
(C) Titles of the seven most expensive books.
(D) Title of the seventh most expensive books.
Answer: (C)
Explanation:
Select title from book as B where (select count ( * ) from book as T where T.price > B.price) < 7
It will return titles of the seven most expensive books.
So, option (C) is correct.
Quiz of this Question
Recommended Posts:
- UGC-NET | UGC NET CS 2018 July - II | Question 95
- UGC-NET | UGC-NET CS 2017 Nov - III | Question 11
- UGC-NET | UGC NET CS 2016 Aug - III | Question 2
- UGC-NET | UGC NET CS 2016 Aug - III | Question 3
- UGC-NET | UGC NET CS 2016 Aug - III | Question 4
- UGC-NET | UGC NET CS 2016 Aug - III | Question 5
- UGC-NET | UGC-NET CS 2017 Nov - III | Question 8
- UGC-NET | UGC-NET CS 2017 Nov - III | Question 9
- UGC-NET | UGC-NET CS 2017 Nov - III | Question 10
- UGC-NET | UGC NET CS 2015 Jun - II | Question 28
- UGC-NET | UGC NET CS 2018 July - II | Question 47
- UGC-NET | UGC NET CS 2018 July - II | Question 48
- UGC-NET | UGC NET CS 2018 July - II | Question 49
- UGC-NET | UGC NET CS 2015 Jun - III | Question 17
- UGC-NET | UGC NET CS 2015 Jun - III | Question 16



