I have two tables in a legacy database (which I cannot modify) with data as follows:...Table1 has a composite primary key (Code, Abbrev), but Abbrev is also used as a discriminator (see below). Table2 has two foreign key columns (CodeA, CodeB), both refer...