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 -> IN Clause Question - Function

IN Clause Question - Function

From: Moore <rlmoore_at_purdue.edu>
Date: Tue, 14 Mar 2000 09:24:31 -0500
Message-ID: <Pine.SOL.4.10.10003140920000.19186-100000@herald.cc.purdue.edu>


Greetings.

I have written a function that returns a CHAR similar to:

('02-00','01-00','12-99')

The function name is get_Past3Months.

The query that uses the function is as follows:

SELECT	customer_code,
	premis_code,
	action_date
FROM	(
	SELECT		get_Past3Months in_DateString
	FROM		DUAL
	) months,
	history
WHERE	TO_CHAR(action_date, 'MM-YY') IN months.in_DateString

Will my scheme work?

TIA Received on Tue Mar 14 2000 - 08:24:31 CST

Original text of this message

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