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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Max two dates

RE: Max two dates

From: Kevin Lange <kgel_at_ppoone.com>
Date: Mon, 06 Aug 2001 09:16:23 -0700
Message-ID: <F001.00361970.20010806090229@fatcity.com>

Remember that the Order by in the imbeded table in the from is not valid on 8.0.5 (and probably before). At least it does not work for me.

-----Original Message-----
Sent: Monday, August 06, 2001 11:21 AM
To: Multiple recipients of list ORACLE-L

Is this what you are looking for:  

select activity_date from (select activity_date from sbc order by activity_date desc)
where rownum < 3  

-----Original Message-----
Sent: Monday, August 06, 2001 11:52 AM
To: Multiple recipients of list ORACLE-L

I have a date field and I want to select rows with max 2 date values. How can I do that?  

Thank you.

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Bala, Prakash
  INET: prakash.bala_at_cingular.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Kevin Lange
  INET: kgel_at_ppoone.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Aug 06 2001 - 11:16:23 CDT

Original text of this message

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