Devi inserire rownum =1 FUORI dalla query analitica
SELECT *
FROM ( select last_value(col1 ignore nulls) over () col1,
last_value(col2 ignore nulls) over () col2,
last_value(col3 ignore nulls) over () col3
from (select * from THE_TABLE ORDER BY ROW_PRIORITY)
)
WHERE ROWNUM = 1
che si traduce in (usando i valori sopra):
COL1 COL2 COL3
------ ------- ----
0.2 100 3