Sail E0 Webinar
Question
Which one of the following is equivalent in MongoDB select* from employee order by salary desc;?
Options:
A .  db.employee.find.sort({“salary”:1}]
B .  db.employee.sort ({“salary”:-1}]
C .  db.employee.find.sort ({“salary”:-1}
D .  db.employee.sort({“salary”:1}]
Answer: Option C

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers