G
Guest
Help!
I have 2 tables. One has a code and a policy number. There are several
policy records with the same code. The other has a code and a name. These
records are unique. Each table is sorted (by separate queries) by code.
I just want a list of the policy records that did not have a matching code.
I tried using the unmatched query wizard, but that gives me every thing or
nothing. I put the table with policy number as the left table since I want
everything from that table that did not have a matching record from the right
table. What am I doing wrong? Please help!!
Below is the SQL from my query:
SELECT qry_test_pols_ALL_sorted.producer_code,
qry_test_pols_ALL_sorted.policy_number, qry_test_pols_ALL_sorted.producer_name
FROM qry_test_pols_ALL_sorted LEFT JOIN qry_prdcr_code_by_id ON
qry_test_pols_ALL_sorted.producer_code = qry_prdcr_code_by_id.tbl_pc_id
WHERE (((qry_prdcr_code_by_id.tbl_pc_id) Is Null))
ORDER BY qry_test_pols_ALL_sorted.producer_code;
I have 2 tables. One has a code and a policy number. There are several
policy records with the same code. The other has a code and a name. These
records are unique. Each table is sorted (by separate queries) by code.
I just want a list of the policy records that did not have a matching code.
I tried using the unmatched query wizard, but that gives me every thing or
nothing. I put the table with policy number as the left table since I want
everything from that table that did not have a matching record from the right
table. What am I doing wrong? Please help!!
Below is the SQL from my query:
SELECT qry_test_pols_ALL_sorted.producer_code,
qry_test_pols_ALL_sorted.policy_number, qry_test_pols_ALL_sorted.producer_name
FROM qry_test_pols_ALL_sorted LEFT JOIN qry_prdcr_code_by_id ON
qry_test_pols_ALL_sorted.producer_code = qry_prdcr_code_by_id.tbl_pc_id
WHERE (((qry_prdcr_code_by_id.tbl_pc_id) Is Null))
ORDER BY qry_test_pols_ALL_sorted.producer_code;