Q. What is the purpose of the GROUP BY clause in SQL?

A
Filter rows
B
Sort data
C
Aggregate data into groups
D
Join tables
Solution:

GROUP BY aggregates data into groups, often used with functions like COUNT, SUM, or AVG.

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!