?
Solved

Adding Months to the DATE, Nested Function

Posted on 2005-04-25
2
Medium Priority
?
2,213 Views
Last Modified: 2006-11-18
I have a select statement and I want to add some months to my SQL statement. I need to Add 6 Months to the Hire_date.
I cannot get a nested function to work here.

SELECT LAST_NAME, HIRE_DATE,
TO_CHAR(HIRE_DATE, 'DAY, "the" fmDdspth "of" Month, YYYY')REVIEW
FROM EMPLOYEES;

I cannot get this to work correctlly.

Thanks
0
Comment
Question by:blazted
2 Comments
 
LVL 15

Accepted Solution

by:
ishando earned 200 total points
ID: 13863805
SELECT LAST_NAME, HIRE_DATE,
TO_CHAR(add_months(HIRE_DATE,6), 'DAY, "the" fmDdspth "of" Month, YYYY') REVIEW
FROM EMPLOYEES;

should do it
0
 

Author Comment

by:blazted
ID: 13863829
Tahnk you, I had my () placed wrong in my Statement earlier
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question