A SQL question

From: Alex <alexsm_at_eudoramail.com>
Date: 4 Nov 2003 07:06:12 -0800
Message-ID: <29ff93bc.0311040706.68478886_at_posting.google.com>



[Quoted] Hi everybody

I am trying to apply an OUTER JOIN on multiple fields.

Table1: (firstname, lastname)
Table2: (firstname, lastname)

Table2 has all firstnames which is in Table1 Table2 has all lastnames which is in Table1 But Table2 does not have all combination of (firstname, lastname) as Table1 does. For these rows I would like to have a NULL entry in Table2.

The following is not working

select t2.firstname, t2.lastname
from table1 t1, table2 t2
where t1.firstname = (+)t2.firstname
and t1.lastname = (+)t2.lastname

Any comment? Received on Tue Nov 04 2003 - 16:06:12 CET

Original text of this message