EPAM Systems interview question

Differenence between group by and having in SQL