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: defining rules

Re: defining rules

From: Yechiel Adar <adaryechiel_at_hotmail.com>
Date: Sun, 07 Apr 2002 07:23:17 -0800
Message-ID: <F001.0043DF4B.20020407072317@fatcity.com>


I think that you should create an after row trigger that will activate a package that will check the values and activate whatever procedures you need.

This way you have only one trigger and you control what to do in whatever order you need.

Yechiel Adar, Mehish

  I have a bugging problem, I will try to explain it...

  We need to store rules into the databse ...

  example
  Rule 1 says : if the name of a person = 'A' , age is > 20 , state ='YSA' the execute procedure1

  Another rule says

  Rule 2 : if the name of a person = 'A' , age is > 20 the execute procedure2

  Now if we try to save a person record as follows   Name ='A' and age = 23 then both the rules would be executed.

  Now my problem, there could be hundreds of such rules, so when I save the person record, how do I find which rule to be applied   What is the best optimum method to store these rules in the database and what is the best solution to find which rule to be applied..

  Please note that these are not the only parameters that could be there in the rules...

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Yechiel Adar
  INET: adaryechiel_at_hotmail.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Sun Apr 07 2002 - 10:23:17 CDT

Original text of this message

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