Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I do this???

Status
Not open for further replies.

szeiss

Programmer
Apr 5, 2000
137
US
Using Oracle 10g, I need to figure out starting from today's date, what phase will I be in in 6 months according to the schedule.

Code:
            Start       End
Phase 1                 1/31/2009
Phase 2     2/28/2010   6/16/2010
Phase 3     6/16/2010   12/31/2010
Phase 4     12/31/2010  5/10/2012
Phase 5     5/10/2012   5/10/2014

It's possible to have an empty date field.

Thanks,
Sherry
 
Take a look at the add_months function and BETWEEN keyword. I think you'll need to nvl any date field that could be empty.

-----------------------------------------
I cannot be bought. Find leasing information at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top