In SQL, what is the significance of the ORDER BY clause in a SELECT statement?

  • Arranging data in ascending order
  • Filtering the result set based on a condition
  • Selecting distinct values from the result set
  • Sorting the result set in descending order
The ORDER BY clause in a SELECT statement is used to sort the result set based on one or more columns either in ascending (default) or descending order. It arranges the rows returned by the query in a specified order, making it easier for users to analyze the data. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *