Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> [Beginner] Problem with Order by of a date

[Beginner] Problem with Order by of a date

From: <fmarchioni_at_libero.it>
Date: 8 Nov 2005 09:04:55 -0800
Message-ID: <1131469495.755284.34460@g43g2000cwa.googlegroups.com>


Hi all,
I'm building a query where I need to retrieve just 1 one row, which must be that with the highest Date (I mean that which is closest to the moment where the query is issued)

SELECT a.lista_campi_tpr, date_import
  FROM CELL_PR cp
   WHERE cp.id_cella = 'PZ81U1'
   AND ROWNUM < 2
   ORDER BY date_import DESC

The Date is date_import.......
unfortunately that doesn't work.......... anybody can help me ?
Thanks
Francesco Received on Tue Nov 08 2005 - 11:04:55 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US