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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Date Operations in Stored Procedure

Re: Date Operations in Stored Procedure

From: DriftWood <drift_wood_at_my-deja.com>
Date: Tue, 09 Jan 2001 16:33:30 GMT
Message-ID: <93fegq$t0g$1@nnrp1.deja.com>

If these are actual date columns then simple date arithmetic will work:

if item > d1 and item < d2 then
...

etc.

You can test for overlap by using this in a SQL statement where clause (without the IF) against the start and end date columns.

--
-cheers
  DW
--------------------------------------------------------------------
"It is a kind of good deed to say well; and yet words are not deeds.
  -William Shakespeare"


Sent via Deja.com
http://www.deja.com/
Received on Tue Jan 09 2001 - 10:33:30 CST

Original text of this message

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