Question: Explain the purpose of the ORDER BY clause.Answer: The ORDER BY clause is used to sort the result set of a query in ascending or descending order based on one or more columns.Example:
|
Is it helpful?
Yes
No
Most helpful rated by users:
- What is SQL?
- What is the difference between SQL and MySQL?
- What is a primary key?
- What is an index in a database?
- What is a foreign key?