Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Joining two tables using an SQL query

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-05-07 : 11:19:47
Rabia writes "Hi,
I would like join two tables using e.g outcode_ID. Simple enough, but the problem I have is that one of the tables has more entries for the outcode_ID field than the other table.
The only link with both tables is the outcode_ID

Any help much appreciated
Regards,
R"

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2004-05-07 : 11:24:31
hi!

select *
from table1 t1 left join table2 t2 on t1.outcode_ID = t2.outcode_ID
where (some conditions...)

t2 is the table with multiple entries.



Go with the flow & have fun! Else fight the flow :)
Go to Top of Page
   

- Advertisement -