Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Get BEST date? Get Closest Row?

Get BEST date? Get Closest Row?

From: jobs <jobs_at_webdos.com>
Date: Mon, 25 Jun 2007 12:47:27 -0700
Message-ID: <1182800847.673718.183670@p77g2000hsh.googlegroups.com>


Please excuse my last post. That was insane and i don't expect anybody to think about that crazy excuse of a problem. But if someone does have anything to offer for it that would be hugely appreciated it.

That said, and to boil down what I need.

I have two tables

Activity (many rows per ssn but no overlaping of dates)) ssn
status
effective date

Participation (many rows per snn but no overlaping of dates): ssn
plan
effective
termination

I need to write a function that returns the Earliest (BEST) termination date given some values in.

ssn, effective date, period start date

return the EARLIEST termination date.:

termination dates for those three inputs is based on:

Received on Mon Jun 25 2007 - 14:47:27 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US