結果 : having clause with max function in sql server