To begin with, I have two tables: codes and supply.
Codes has the following schema: state char(2), codetype char(2), code char(6), codetitle varchar(200)
Supply has 12 columns but three of them are state,codetype,and code with the same type as above.
Sample data is below
Text
Codes state codetype code codetitle 32 15 123456 Accountant 32 15 123457 paralegal 32 15 123458 Secretary Supply state codetype code codetitle 32 15 123456 Accountant 32 15 123459 Doctor
I am trying to find the combinations of state,codetype, and code that are in supply but not codes. The result would be only those rows that are in supply but not codes. In this case, it would be the second row of codes (code 123459). Would this be a simple matter of doing a left join or would I case when into this?
Quick edit, I have since added a new column to both tables titled...