v4c.ai interview question

Difference between having and group by