CBSE Class 12 Informatics Practices
Question 26 of 90
Querying Using SQL — Question 4
Back to all questions 4
Question Consider the following query
SELECT * FROM employee ORDER BY salary ............... , name ............... ;To display the salary from greater to smaller and name in alphabetical order which of the following options should be used ?
- Ascending, Descending
- Asc, Desc
- Desc, Asc
- Descending, Ascending
Desc, Asc
Descending, Ascending
Reason — To display the salary from greater to smaller i.e., in descending order we use DESC or descending keyword and to sort name in alphabetical order i.e., in ascending order we use ASC or ascending keyword.