#Filtering

Restricting rows with conditions.

5 notes tagged

SQL

HAVING, and WHERE vs HAVING

HAVING filters groups after aggregation, WHERE filters rows before it. Learn when each applies, why using both is usually correct, and which is faster...

Read more