query

G

Guest

I have 2 tables

tbl1 has the following record A,B,C,D
tbl2 has the following record B,C

I would like a query to return only the records from tbl1
that are not there i tbl2.

Thanks
 
V

Van T. Dinh

SELECT T1.*
FROM [tbl1] AS T1 LEFT JOIN [tbl2] AS T2
ON T1.LinkField = T2.LinkField
WHERE T2.LinkField Is Null
 
G

Guest

Thank you Van.
-----Original Message-----
SELECT T1.*
FROM [tbl1] AS T1 LEFT JOIN [tbl2] AS T2
ON T1.LinkField = T2.LinkField
WHERE T2.LinkField Is Null

--
HTH
Van T. Dinh
MVP (Access)




I have 2 tables

tbl1 has the following record A,B,C,D
tbl2 has the following record B,C

I would like a query to return only the records from tbl1
that are not there i tbl2.

Thanks


.
 

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