SQL Where VS Having Clauses in 30 Seconds

Liu Zuo Lin
Level Up Coding
Published in
3 min readMay 4, 2024

--

In both WHERE and HAVING, some condition comes afterwards. The difference lies in whether we are using GROUP BY.

The WHERE clause

--

--