Hi,
I came across with a statement like the following:
proc sql;
create table tmp01 as
select col1
, col2
, max(col3, col4) as MaxVar
from ...
;
quit;
So, MAX is used without GROUP BY seemingly as a (row wise) scalar function like within a DATA STEP. Being familiar with "native SQL", I would have expected something like CASE WHEN ELSE END or GREATEST instead of MAX, but the results seem to be the same. Hence, my question is: Can I really use MAX within PROC SQL as it is done within the example? (Correct results also might by coincidence.)
Thanks for your help, Sven