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
 SQL Server Development (2000)
 Get rows in TableA that don't exist in TableB

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-02-22 : 23:41:20
Jan writes "Hi,

How do I join 2 tables and get the rows that only contain in the left table AND don't exist in the right table. For example,

Users Table has Userid, Username:
1 Bob
2 John

Address Table has Userid, UserAddress:
2 555 8th Ave

How do I write a query to get Bob?

Thanks!

Jan"
   

- Advertisement -