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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Create Rule

Re: Create Rule

From: Ron Rogers <RROGERS_at_galottery.org>
Date: Fri, 14 Nov 2003 10:59:25 -0800
Message-ID: <F001.005D6B06.20031114105925@fatcity.com>


Hamid,
 You could always have a canned query that the run to look up the data and have the script ask them for the table name. select * from &tabname where sysdate between (select min(effdate) from &&tabname) and
  (select max(enddate) from &&tabname)

Or something along those lines.
Ron

>>> hamid.alavi_at_quovadx.com 11/14/2003 12:49:25 PM >>>
List,

I have 50 lookup tables and all of them have effective date & end date I
want to create a rule or some thing like this which any select statement
select the data from these lookup where the sysdate between effective date &
end date.
Example:

select * from table1 ( always select those records where sysdate between
effective date & end date).
Any Idea?

Thanks,

Hamid Alavi

Office : 818-737-0526
Cell phone : 818-416-5095

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net 
-- 
Author: Hamid Alavi
  INET: hamid.alavi_at_quovadx.com 

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com 
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Ron Rogers
  INET: RROGERS_at_galottery.org

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Nov 14 2003 - 12:59:25 CST

Original text of this message

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