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: First day of the month?

Re: First day of the month?

From: Doug O'Leary <dkoleary_at_mediaone.net>
Date: Thu, 28 Jun 2001 23:29:47 GMT
Message-ID: <MPG.15a57b1f8e63b4139897a6@news.randori.com>

In article <3B3B1A15.572594BD_at_cgi.ca>, stephen.bell_at_cgi.ca says...
>Hi Doug,
>
>What about
>
>SQL> select last_day(sysdate)+1 from dual;
>
>LAST_DAY(
>---------
>01-JUL-01
Hey;

That's the first of next month; I'm looking for the first of this month. I think Spencer's "select trun(sysdate,'MONTH') from dual" wins.

Thanks for the response though.

Doug

-- 
-------------------
Douglas K. O'Leary
Senior System Administrator
dkoleary_at_mediaone.net
Received on Thu Jun 28 2001 - 18:29:47 CDT

Original text of this message

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