1.

Which clause is used to sort query elements?(a) GROUP(b) GROUP BY(c) ORDER(d) ORDER BYI got this question in a national level competition.The origin of the question is MySQL Setup topic in division General MySQL Use of MySQL

Answer»

Correct ANSWER is (d) ORDER BY

The explanation is: 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.



Discussion

No Comment Found

Related InterviewSolutions