WHERE vs HAVING

WHERE vs HAVING

WHEREHAVING
Filter individual rows based on conditions involving column valuesFilter groups of rows based on conditions involving aggregated values
Must used after GROUP BY
Contain aggregate function
Used in SELECT, UPDATE, or DELETE statementsUsed in SELECT statements