結果 : sql having before group by