結果 : sql having clause with max function