Flex interview question

Difference between HAVING and WHERE in SQL