Which SQL clause is used to sort the result set?
-
A
GROUP BY
-
B
ORDER BY
Correct answer
-
C
SORT BY
-
D
HAVING
Correct answer
B. ORDER BY
12 views
Explanation
ORDER BY sorts the result set in ascending or descending order. Source: General SQL knowledge.
Reference
Asked in: FPSC,CSS,NTS,PPSC,PMS
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ