Skip to content
Worked Examples · Example 8.10

Q.The following query displays details of all the employees in descending order of their salaries.

CBSENCERTSubjective· 2mImportance★★★★★
42% · 19/45 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

All employees, sorted descending by salary.

SELECT * FROM EMPLOYEE ORDER BY Salary DESC;

Output:

10 rows descending: Kritika 60000, Tanya 50000, Sanya 48000, Shabbir 45000, Daribha 42000, Joseph 34000, Nachaobi 29000, Gurpreet 19000, Vergese 15000, Aaliya …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.