G
Guest
I need to return non matched records between 2 tables with a many to many
relationship.
tbl CrosswalkClaims contains medical claims to be sent to medicare. In the
table is chart#, Date of Visit, Procedure Code, Diagnosis Code. (Each
procedure has a corresponding diagnosis code. These diagnosis codes must be
on the approved list for each procedure code which is determined by medicare.)
tbl DXCrosswalk contains all the Procedure codes and corresponding Diagnosis
codes. There is no primary key in this table as both Procedure and Diagnosis
appear many times.
example of table data
Procedure Dx
97140 780
97140 V54
97110 780
97110 V54
97112 V54
97112 840
I need to return all records in tbl CrosswalkClaims that do not have a
corresponding Procedure Diagnosis match in tbl DXCrosswalk.
How can I do this? I was able to return matching records by linking the
procedures and diagnosis but I need the opposite.
relationship.
tbl CrosswalkClaims contains medical claims to be sent to medicare. In the
table is chart#, Date of Visit, Procedure Code, Diagnosis Code. (Each
procedure has a corresponding diagnosis code. These diagnosis codes must be
on the approved list for each procedure code which is determined by medicare.)
tbl DXCrosswalk contains all the Procedure codes and corresponding Diagnosis
codes. There is no primary key in this table as both Procedure and Diagnosis
appear many times.
example of table data
Procedure Dx
97140 780
97140 V54
97110 780
97110 V54
97112 V54
97112 840
I need to return all records in tbl CrosswalkClaims that do not have a
corresponding Procedure Diagnosis match in tbl DXCrosswalk.
How can I do this? I was able to return matching records by linking the
procedures and diagnosis but I need the opposite.