having clause in group by sql queries would