I am not asking about common Min / Max functions here. I would like to know if there are functions to get a mix or a maximum of two values, as in:
SELECT Maximum(a,b)
FROM Foo
If the table Foo contains
a b
1 2
4 3
Then the results should be 2, then 4.
I can do this with the IF or CASE statement, but you would think there would be some simple math functions for that.
Thank,
Daniel
source
share