結果 : group by and having function in sql