結果 : sql min of three values