Q. What is the purpose of the HAVING clause in SQL?

A
Sort data
B
Filter grouped data
C
Join tables
D
Filter rows before grouping
Solution:

HAVING filters groups created by GROUP BY based on a condition, applied after aggregation.

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!