ZS Associates interview question

difference between group by and having clause