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 -> Re: Question - Passing a date

Re: Question - Passing a date

From: Martin T. <bilbothebagginsbab5_at_freenet.de>
Date: 1 Sep 2006 03:54:44 -0700
Message-ID: <1157108084.052927.211750@m79g2000cwm.googlegroups.com>


VB wrote:
> Hi,
>
> I have been asked to author a report for Finance (having not done this
> before) and I want to pass set up a view which will take the assembled
> data from 01/09/05 until the End of the month previous ie 31/08/06 but
> up until Midnight. THen next month for September.
>
> Is there a way to get the previous month's date by using TO_DATE
> Sysdate and minusing the month by 1 (The report will always be run on
> the 1st of the next month).
>
> Any and all help would be appreciated.

Is this helpful? ...

select sysdate now, add_months(sysdate, -1) one_month_before from dual

best,
Martin Received on Fri Sep 01 2006 - 05:54:44 CDT

Original text of this message

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