Should junction tables have more than one primary keys from another indentifying table?
Here's an exmaple: Originally I have 3 tables. Table B references Table A. So now Table B has two primary keys. One used as the original primary key and the other one to enforce its relationship with Tabe A. Then I want Table B to have a many-to-many relationship with Table X. As I'm adding the relationship, MySQL Workbench added Table Y with both of Table B primary keys and one primary key in Table X. So Table Y now has three primary keys. It seems like the second primary key from Table B in the junction table is unnecessary since I can identify Table B with the original primary key. So do I