Beaconfire interview question

what is the difference between HAVING and WHERE in SQL