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 -> where rownum =1 NOT producing expected TOP 1results with order by

where rownum =1 NOT producing expected TOP 1results with order by

From: jobs <jobs_at_webdos.com>
Date: 7 Feb 2007 11:56:16 -0800
Message-ID: <1170878176.767764.8470@a34g2000cwb.googlegroups.com>


This query does not give me the correct row. Am I missing something here? I'm looking for the first row when sorting by that logdate.. thanks.

 select logtype into g from CPM_ERRORLOG where cpmjobno=29 and rownum=1 order by logdate desc;

Thanks. Received on Wed Feb 07 2007 - 13:56:16 CST

Original text of this message

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