CBSE Class 12 Informatics Practices Question 52 of 90

Querying Using SQL — Question 2

Back to all questions
2
Question

Question 2

What is the use of ORDER BY clause ?

Answer

In SQL, the ORDER BY clause is used to sort the rows of the result set produced by a SELECT statement. We can specify one or more columns in the ORDER BY clause to sort the result set either in ascending (default) or descending order.