select (case when a>b then a else b end), 
(case when b>c then b esle c end)
from table_name

相关文章: