Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Problem with Order by of a date
ROWNUM is ALWAYS evaluated before ORDER BY.
One solution (not the best one, IMHO) is:
SELECT lista_campi_tpr,
date_import
FROM ( SELECT lista_campi_tpr,
date_import FROM CELL_PR cp WHERE cp.id_cella = 'PZ81U1' ORDER BY date_import DESC )
Cheers.
Carlos. Received on Tue Nov 08 2005 - 14:11:11 CST