Matching records between 2 access tables

时间:2015-04-23 05:22:22

标签: database

All,

I have 2 tables in Access. Let's call them RepQ1 and Des. There are 2 fields in these 2 tables which I am trying to match and get matching records. These 2 fields are of TEXT data type. Following is the query that I am using.

SELECT * FROM RepQ1 LEFT JOIN Des ON Rep.Mat=Des.MatD;

When I run this, I get no result displayed. Please advise.

1 个答案:

答案 0 :(得分:0)

检查此查询

SELECT * FROM RepQ1 WHERE RepQ1.Mat IN (SELECT DISTINCT MatD FROM Des);