I\'ve been looking for a good equivalent to the Oracle LEAST function.
I\'m hoping to implement a user defined function that does about 10 fairly complex calculation
mayby this query could help:
SELECT min(c1)
from (
select expression1 as c1
union all
select expression2 as c1
union all
select expression3 as c1
)
The function Least() is applied horizontally in Oracle (on a row level), while Min() is applied vertically over a column. The example in the question required Min().