Q. What does the ORDER BY clause do in SQL?

A
Groups data
B
Sorts the result set
C
Filters rows
D
Joins tables
Solution:

ORDER BY sorts the result set of a query by specified columns, in ascending or descending order.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!