Question
Easy

Which one of the following is used to sort rows in SQL?

1
SORTBY
2
ALIGNBY
3
ORDERBY
4
GROUPBY
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Database Management System (DBMS) & SQL
Topic: SQL
Correct Answer
Option C
Explanation

The correct option is (3): The clause specifically designed in Structured Query Language (SQL) to sort the rows in a query's result set is ORDER BY. It is the final logical operation performed in a SELECT statement, responsible for arranging the output in a desired order, such as alphabetically, chronologically, or numerically. By default, the sorting is done in ascending order (ASC), but the programmer can explicitly specify descending order…Read More