It looks like both WHERE and HAVING help filter rows. I wonder if, instead of having to HAVING, I can use WHERE ... AND.
Where clause is used to filter out rows from all over the database. But Having clause is used to filter out rows from a specific group of database. Having clause can also help in aggregate function like min/max/average.
Follow the link for more detail https://www.codeproject.com/Articles/25258/Where-Vs-Having-Difference-between-having-and-Wher