Message-Id: <10675.121574@fatcity.com> From: "Koivu, Lisa" Date: Thu, 9 Nov 2000 09:51:44 -0500 Subject: RE: is null / = null query This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C04A5C.93FE051E Content-Type: text/plain; charset="iso-8859-1" This is the correct answer, because NULL is never EQUAL to NULL. There are a few exceptions (NVL, DECODE) but the classic defition of NULL is "unknown value", therefore you can't determine it's value at all. I know this is theory gook, but it's the reasoning behind what you saw. HTH Lisa Rutland Koivu Oracle Database Administrator Qode.com 4850 North State Road 7 Suite G104 Fort Lauderdale, FL 33319 V: 954.484.3191, x174 F: 954.484.2933 C: 954.658.5849 http://www.qode.com "The information contained herein does not express the opinion or position of Qode.com and cannot be attributed to or made binding upon Qode.com." -----Original Message----- From: GKor@rdw.nl [mailto:GKor@rdw.nl] Sent: Thursday, November 09, 2000 9:16 AM To: Multiple recipients of list ORACLE-L Subject: is null / = null query Hi everyone I have launched the following query in SQL*PLUS SQL> L 1* SELECT COUNT(*) FROM WERK_ORDER WHERE RESULT_CODE_WO = NULL; SQL> / 0 1 row selected. SQL> SELECT COUNT(*) FROM WERK_ORDER WHERE RESULT_CODE_WO IS NULL; 301 1 row selected. SQL> i did'nt expect to get answer on the first query anyone with an explanation or is this a undocumented feature ? thanks gkor@rdw.nl rdw the netherlands -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: GKor@rdw.nl 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@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). ------_=_NextPart_001_01C04A5C.93FE051E Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: is null / =3D null query

This is the correct answer, because NULL is never = EQUAL to NULL.  There are a few exceptions (NVL, DECODE) but =
the classic defition of NULL is "unknown = value", therefore you can't determine it's value at all.

I know this is theory gook, but it's the reasoning = behind what you saw.

HTH

Lisa Rutland Koivu
Oracle Database Administrator
Qode.com
4850 North State Road 7
Suite G104
Fort Lauderdale, FL  33319

V: 954.484.3191, x174
F: 954.484.2933
C: 954.658.5849
http://www.qode.com

"The information contained herein does not = express the opinion or position of Qode.com and cannot be attributed to = or made binding upon Qode.com."


-----Original Message-----
From: GKor@rdw.nl [mailto:GKor@rdw.nl]
Sent: Thursday, November 09, 2000 9:16 AM
To: Multiple recipients of list ORACLE-L
Subject: is null / =3D null query




Hi everyone

I have launched the following query in = SQL*PLUS

SQL> L
  1* SELECT COUNT(*) FROM WERK_ORDER WHERE = RESULT_CODE_WO =3D NULL;
SQL> /
         = 0

1 row selected.

SQL> SELECT COUNT(*) FROM WERK_ORDER WHERE = RESULT_CODE_WO IS NULL;
       301

1 row selected.

SQL>

i did'nt expect to get answer on the first = query

anyone with an explanation or is this a undocumented = feature ?

thanks

gkor@rdw.nl
rdw the netherlands
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: GKor@rdw.nl

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@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 =