I have a very simple join table relating two tables, to simplify the problem we can say table1 is A and table 2 is B, with a join table AB.