I have a user defined function and I want to do a select and choose a column based on whether or not it is bigger or small than another.
For example:
Select
t.A, t.B
From
Table t
Where
if(t.A <= t.B) then
use t.A
else
use t.B
Is this possible? Thanks in advance!
It seems like you want