Home / Engineering / Database Management System (DBMS) / Question

M

Mr. Dubey • 51.43K Points
Coach

Q.) With SQL, how can you return all the records from a table named “Persons” sorted descending by “FirstName”?

(A) SELECT * FROM Persons SORT BY ‘FirstName’ DESC
(B) SELECT * FROM Persons ORDER FirstName DESC
(C) SELECT * FROM Persons SORT ‘FirstName’ DESC
(D) SELECT * FROM Persons ORDER BY FirstName DESC
Correct answer : Option (D) - SELECT * FROM Persons ORDER BY FirstName DESC

Share

Discusssion

Login to discuss.