結果 : sql store max value in variable