Pregunta de entrevista de Phenom

Why Group by and having. Difference between group by and where etc;