Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Funky date request......NEVERMIND!!!
Figured it out.....should anyone be interested here is the solution. Boy,
if I could gain some patience in my job sometimes I would be awesome!!!!!
select last_day(add_months(sysdate,-1)) from dual;
Thanks Anyway,
Christine Turner
Database Administrator
IPS-Sendero
Scottsdale, Arizona
Phone: (800) 321-6899 ext. 3286
Fax: (480) 946-8224
E-mail: christine.turner_at_ips-sendero.com
-----Original Message-----
From: Christine Turner [SMTP:Christine.Turner_at_IPS-Sendero.com] Sent: Monday, July 03, 2000 8:40 AM To: 'ORACLE-L_at_fatcity.com' Subject: Funky date request......
Hello All,
My condolences to you if you are working today. As I am too, I know how it feels! Anyway, I have a strange request from one of my users. On an insert statement, they want to be able to insert the current sysdate, minus one month, and make it the last day of that month? Make sense???
IE: current sysdate is July 3, 2000 they would want----> June 30, 2000
Anyone have any ideas how to accomplish this????
TIA
cheers!
Christine Turner
Database Administrator
IPS-Sendero
Scottsdale, Arizona
Phone: (800) 321-6899 ext. 3286
Fax: (480) 946-8224
E-mail: christine.turner_at_ips-sendero.com
Received on Mon Jul 03 2000 - 03:54:37 CDT