KnowledgeBoat Logo
|

Computer Science

What is the difference between HAVING and WHERE clause ?

SQL Joins & Grouping

10 Likes

Answer

HAVING clauseWHERE clause
HAVING conditions are applicable to groups formed by GROUP BY clause.WHERE conditions are applicable to individual rows.
HAVING conditions can include aggregate functions.WHERE conditions cannot include aggregate functions.
It allows conditions to be applied to grouped data.It filters rows based on specified conditions.

Answered By

4 Likes


Related Questions