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: IN ignore null values

RE: IN ignore null values

From: Niall Litchfield <n-litchfield_at_audit-commission.gov.uk>
Date: Fri, 20 Feb 2004 14:47:09 +0000
Message-Id: <s0361dff.092@bristol21.bristol.ac>


In the first case you are testing for equality against NULL.=20 Niall Litchfield
Oracle DBA
Audit Commission
+44 117 975 7805=20

> -----Original Message-----
> From: jreyes_at_dazasoftware.com=20
> Sent: 20 February 2004 14:32
> To: aore_at_dazasoftware.com; cmonroy_at_dazasoftware.com;=20
> dpuna_at_dazasoftware.com; dvenegas_at_dazasoftware.com;=20
> ilujan_at_dazasoftware.com; jdaza_at_dazasoftware.com;=20
> jdsanchez_at_dazasoftware.com; jreyes_at_dazasoftware.com;=20
> jsalazar_at_dazasoftware.com; lchalco_at_dazasoftware.com;=20
> oracle-l_at_freelists.org; rpacheco_at_dazasoftware.com
> Subject: IN ignore null values=20

>=20
>=20

> An interesting observation
>=20

> IN ignore null values as you can see in the table there are=20
> 310 null values
> in column TBL_DSM.
>=20

> SQL> select count(*) from daz.utl_tablas_me
>=20

> 2 where tbl_dsm in
>=20

> 3 (select null from daz.utl_tablas_me);
>=20

> COUNT(*)
>=20

> ---------
>=20

> 0
>=20

> SQL> select count(*) from daz.utl_tablas_me
>=20

> 2 where exists(select null from daz.utl_tablas_me);
>=20

> COUNT(*)
>=20

> ---------
>=20

> 310
>=20 >=20 >=20
> ----------------------------------------------------------------
> 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
> -----------------------------------------------------------------
>=20
>=20

This email contains information intended for the addressee only. It may be confidential and may be the subject of legal and/or
professional privilege. Any dissemination, distribution, copyright or use of this
communication without prior permission of the sender is strictly prohibited.


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 Fri Feb 20 2004 - 08:47:09 CST

Original text of this message

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