Re: [PHP-DB] Rules in a database

2004-02-07 Thread Ignatius Reilly
additional conditions were true:... > - result 1 ...the following extra conditions are requiredetc. > > Do you think this is feasible? > > Regards, > > John > > > > > > - Original Message - > From: "Ignatius Reilly" <[EMAIL PROTECT

RE: [PHP-DB] Rules in a database

2004-02-06 Thread Paul Miller
I guess I did not pay attention that day in class, but that is cool. - Paul -Original Message- From: Ignatius Reilly [mailto:[EMAIL PROTECTED] Sent: Friday, February 06, 2004 9:14 AM To: DB list PHP; John Subject: Re: [PHP-DB] Rules in a database A bit of algebra first: any

Re: [PHP-DB] Rules in a database

2004-02-06 Thread Ignatius Reilly
A bit of algebra first: any expression formed of atomic expressions, AND, OR and parentheses can be reduced to a "canonical" form, by using the De Morgan laws: a AND ( b OR c ) is equiv. to a AND b OR a AND c So a rule can eventually be reduced to "AND" groups, joined by "OR": a(1) AND... AND a(n