I am trying to select the MAX from another query result which returns only one column with values.
The query which gives me the column with all the values from which I want to only select the max is:
SELECT perfy as perf
FROM aasv_chart5
UNION
SELECT perfcumu as perf
FROM aasv_chart5
This returns
PERF
-2.9
1.4
12.5
14
now I want to select the Max value from that. I tried something like..
select MAX(SELECT perfy as perf
FROM aasv_chart5
UNION
SELECT perfcumu as perf
FROM aasv_chart5) FROM aasv_chart5