EY interview question

What is the difference between HAVING and WHERE in sql