I want to compare 2 tables

K

Kevin M.

Hello Everyone,

I have table A that has a list of user id`s. Some of the
user Id`s are identical in table 2 and some of the user
id`s from table a are non existent in table 2. I want to
run a query that tells me what user id`s in table a are
non existent in table b

Thanks for any help!!

Kevin
 
V

Van T. Dinh

A Left-Join Query should do. Something like:

SELECT TableA.UserID
FROM TableA
LEFT JOIN TableB
ON TableA.UserID = TableB.UserID
WHERE TableB.UserID Is Null
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top