Skip to content
Worked Examples · Example 8.9

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

Uttar Pradesh UpmspTextbookSubjective· 2mImportance★★★★★
38% · 17/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 ascending by salary.

SELECT * FROM EMPLOYEE ORDER BY Salary;

Output:

10 rows ascending: Aaliya 10000, Vergese 15000, Gurpreet 19000, Nachaobi 29000, Joseph 34000, Daribha 42000, Shabbir 45000, Sanya 48000, Tanya 50000, Kritika 60000
10 rows in set (0.05 sec) …

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.