Pregunta de entrevista de PwC

difference between group by and having in sql