I have a table of ICD9 codes where several of them are not coded properly. I would like to insert "No" into a column in that table if a match can not be found in another table.
So for example, I have a code 292300 and It should be 2923. I want to have something like
SELECT icd9, icd10 from icd9codes, GEM where icd9 = icd10;
And if there is not a match found for the icd9 code then do an INSERT INTO
.
Note: GEM table contains icd9 codes and their equivalent mappings for icd10.