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

Home -> Community -> Usenet -> c.d.o.server -> Re: Find First of Month

Re: Find First of Month

From: DA Morgan <damorgan_at_psoug.org>
Date: Wed, 12 Jul 2006 14:32:06 -0700
Message-ID: <1152739928.787663@bubbleator.drizzle.com>


FireGeek wrote:
> Looking for an SQL statement to return the first of the month 90 days
> following a given date. So, if my date is 04/15/2006 I would like
> 08/01/2006 returned.
>
> Help anyone?
>
> THANKS!!!
>
> FireGeek

SELECT LAST_DAY(ADD_MONTHS(SYSDATE, 2))+1 FROM dual;

A list of date functions with demos can be found in Morgan's Library at www.psoug.org.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Wed Jul 12 2006 - 16:32:06 CDT

Original text of this message

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