RedShift - 从多行中取最大值(greatest)

select t.*, greatest(value1, value2, value3, value4) as greatest_value
from mytable t

 

posted @ 2023-08-31 10:36  未必是小小  阅读(27)  评论(0编辑  收藏  举报