Topic: SQL*Plus and PL/SQL >> finding date
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| deal |
Posted: Mar 09, 2007 12:34:20 PM |
Total Post: 21
Joined: Nov, 2006
|
| how to find date 3 months before current date? |
|
|
Jayanta |
| Posted: Mar 09, 2007 01:53:47 PM | |
|
Total Post: 479
Joined: Feb, 2006
|
date-number gives u the no of days subtracted from date.
regards
|
|
|
|
|
deal |
| Posted: Mar 09, 2007 06:07:24 PM | |
|
Total Post: 21
Joined: Nov, 2006
|
|
|
|
|
gps |
| Posted: Mar 10, 2007 01:19:59 AM | |
|
Total Post: 38
Joined: May, 2006
|
Try this:
select add_months(sysdate,-3) from dual
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 857 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Gopu Gopi | 334 |
| Gitesh Trivedi | 322 |
| Vinoth Kumar | 264 |
| neeraj sharma | 258 |
| Ramesh Jois | 246 |
|
|