Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> comparing nulls

comparing nulls

From: <orauser_at_my-deja.com>
Date: 2000/07/26
Message-ID: <8llgst$l62$1@nnrp1.deja.com>#1/1

I am comparing the values in two tables, like

select count(*) from t1, t2
where

t1.a1 = t2.a2
t1.b1 = t2.b2
t1.c1 = t2.c2;

and all is well until say t1.b1 and t2.b2 are both null. Then the equality is not true.

Can someone tell me the correct way to write this without having to do something special for the nullable columns??

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Wed Jul 26 2000 - 00:00:00 CDT

Original text of this message

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