Google News
logo
MySQL - Quiz(MCQ)
Which clause is used to sort query elements?
A)
GROUP
B)
GROUP BY
C)
ORDER
D)
ORDER BY

Correct Answer :   ORDER BY


Explanation : An ‘ORDER BY’ clause specifies the sort order. The data is sorted in ascending order by default. To sort in descending order, the keyword DESC is appended to the ‘ORDER BY’ clause. ‘GROUP BY’ is used to group the query results according to the criteria.

Advertisement