Posted - 10/18/2005 : 11:40:05
| I'm having a problem with a join.
Table1 has a record number column, and so does Table2. Not every record number in Table1 exists in Table2, but many do.
I'm trying to display all of the records in Table1, with some columns from Table2.
select t1.recordno, t2.columname
from Table1 t1 left outer join Table2 t2
on t1.recordno = t2.recordno
Unfortunately, this is only returning rows for records that exist in Table 1 and Table2 (t2.columname is never null), but I want it to display all records from Table1, even if they don't have a corresponding record number in Table2.
Any help would be greatly appreciated.