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

未必是小小 / 2023-08-31 / 原文

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