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: Useful Oracle books - C.J. Date theory vs. practicality

RE: Useful Oracle books - C.J. Date theory vs. practicality

From: Lex de Haan <lex.de.haan_at_naturaljoin.nl>
Date: Sat, 29 May 2004 21:27:53 +0200
Message-ID: <JFEEIGBIDOCCDALDIPLNGEPGCDAA.lex.de.haan@naturaljoin.nl>


yes and no ... the ANSI/ISO SQL standard offers the three operators you need:
"IS TRUE", "IS FALSE", and "IS UNKNOWN". But as far as I know, no vendor has implemented these. Note the power of these operators; they accept a Boolean argument.

The "IS NULL" becomes very clumsy as soon as multiple predicates are involved.

One nice Oracle function (that has been around for quite a while, but was undocumented until 10g)
is the LNNVL function. But again, it has many limitations.

SQL> select 'Bingo!' as result from dual   2 where lnnvl(1=1);

no rows selected

SQL> c/1/2
  2* where lnnvl(2=1)
SQL> / RESULT



Bingo!

SQL> c/=1/ is null/
  2* where lnnvl(2 is null)
SQL> / RESULT



Bingo!

Kind regards,
Lex.



visit my website at http://www.naturaljoin.nl

-----Original Message-----

From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Nuno Souto Sent: Saturday, May 29, 2004 16:58
To: oracle-l_at_freelists.org
Subject: Re: Useful Oracle books - C.J. Date theory vs. practicality

Always very hard to handle three-valued logic without some formal construct or syntax that can cover all options. Which brings me to my next question, if you'd be so kind:

Is there an agreed syntax (or language) anywhere that can hold against three-valued logic? As in: commercially available? Os is three-valued logic condemned to forever be the fly in the ointment (so to speak) of SQL?




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

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
Received on Sat May 29 2004 - 14:25:06 CDT

Original text of this message

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