Question Details

Detailed explanation and options for the selected question.

What is the purpose of the SQL GROUP BY clause?

A. To group rows with the same values
B. To sort query results
C. To filter rows based on conditions
D. To limit the number of rows returned

Explanation:

GROUP BY groups rows with the same values in specified columns. ORDER BY sorts results, WHERE filters rows, and LIMIT restricts row count.