G
Guest
I have 2 tables.
Table Transactions contains data for patients medical visits.
[DATE],[NAME],[TREATMENT CODE],[DIAGNOSIS]
Table Approved Diagnosis contains a list of approved Diagnosis codes for
each Treatment Code.
[TREATMENT CODE],[DIAGNOSIS]
Each Treatment Code can have many approved diagnosis codes.
I need to return any records in the transaction table whose TREATMENT CODE
does not have a corresponding APPROVED DIAGNOSIS code in the Approved
Diagnosis table.
What would be the best approach to accomplish this?
Table Transactions contains data for patients medical visits.
[DATE],[NAME],[TREATMENT CODE],[DIAGNOSIS]
Table Approved Diagnosis contains a list of approved Diagnosis codes for
each Treatment Code.
[TREATMENT CODE],[DIAGNOSIS]
Each Treatment Code can have many approved diagnosis codes.
I need to return any records in the transaction table whose TREATMENT CODE
does not have a corresponding APPROVED DIAGNOSIS code in the Approved
Diagnosis table.
What would be the best approach to accomplish this?