PwC Interview Question

difference between group by and having in sql