Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: First day of the month?
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.netReceived on Thu Jun 28 2001 - 18:29:47 CDT