Using this example, I get the error
'! FUNCTION database.least does not exist.'
select surname, firstname, YTD
where YTD=least (@ytd1, @ytd2);
I have 2 parts to this question.
a) could someone help me get the syntax correct
b)Could someone explain to me what the (@ytd1, ytd2) is actually doing
so i can understand what LEAST (@ytd1, ytd2) does!