What's the correct or most popular name for an "association table"?
I've heard lookup, associative, resolving, mapping and junction table.
Junction table. When you need to establish a many-to-many relationship between two or more tables, the simplest way is to use a Junction Table. A Junction table in a database, also referred to as a Bridge table or Associative Table, bridges the tables together by referencing the primary keys of each data table.
I recommend using a combination of the names of entities and put them in the plural. Thus the name of the table will express connection "many-to-many". If you are going the "names of tables" route, this is better since the singular version would "usually" be a namespaced table.
Association tables are used for many-to-many relationships between two objects. They consist of at least two foreign keys, each of which references one of the two objects. Here is an example of an apple that can be eaten by more than one person, where each of these people can also eat multiple apples: Association Table.
A junction table contains the primary key columns of the two tables you want to relate. You then create a relationship from the primary key columns of each of those two tables to the matching columns in the junction table. In the pubs database, the titleauthor table is a junction table.
There is no "correct" name, but the academic name would be an "Associative Table" (see See the Wikipedia article Associative Entity). Other common names are (in alphabetical order):
Note: This is contents original created by Derek Greer but that was posted as an edit to an accepted answer that totally changed the answer.
Cross reference table. CustomerProductXRef.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With