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

Home -> Community -> Usenet -> c.d.o.misc -> Re: a join question

Re: a join question

From: MadeOfRose <mehmetgulden_at_gmail.com>
Date: 24 Jan 2006 06:14:31 -0800
Message-ID: <1138112071.303504.144150@z14g2000cwz.googlegroups.com>


This is table1
code1 code2 code3
--------- -------- ---------
9 8 7
This is table2;
Code Description

---------    ----------------
9            Nine
8            Eight
7            Seven

SELECT
T1.code1,T21.description,T1.code2,T22.description,T1.code3,T23.description FROM table1 T1,

       table2 T21,
       table2 T22,
       table2 T23
where
       T1.code1=T21.code AND T1.code1=T22.code AND T1.code1=T23.code

that works correct
but when there is empty codeX field in Table1 , no row returns because there is no match found in table2 is there any way to fix that? Received on Tue Jan 24 2006 - 08:14:31 CST

Original text of this message

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