<s>
An	O
associative	B-Application
entity	I-Application
is	O
a	O
term	O
used	O
in	O
relational	B-Architecture
and	O
entity	B-Architecture
–	I-Architecture
relationship	I-Architecture
theory	O
.	O
</s>
<s>
A	O
relational	B-Application
database	I-Application
requires	O
the	O
implementation	O
of	O
a	O
base	O
relation	O
(	O
or	O
base	O
table	O
)	O
to	O
resolve	O
many-to-many	B-Application
relationships	I-Application
.	O
</s>
<s>
As	O
mentioned	O
above	O
,	O
associative	B-Application
entities	I-Application
are	O
implemented	O
in	O
a	O
database	O
structure	O
using	O
associative	O
tables	O
,	O
which	O
are	O
tables	O
that	O
can	O
contain	O
references	O
to	O
columns	O
from	O
the	O
same	O
or	O
different	O
database	O
tables	O
within	O
the	O
same	O
database	O
.	O
</s>
<s>
An	O
associative	O
(	O
or	O
junction	O
)	O
table	O
maps	O
two	O
or	O
more	O
tables	O
together	O
by	O
referencing	O
the	O
primary	B-Application
keys	I-Application
(	O
PK	O
)	O
of	O
each	O
data	O
table	O
.	O
</s>
<s>
In	O
effect	O
,	O
it	O
contains	O
a	O
number	O
of	O
foreign	B-Application
keys	I-Application
(	O
FK	O
)	O
,	O
each	O
in	O
a	O
many-to-one	O
relationship	O
from	O
the	O
junction	B-Application
table	I-Application
to	O
the	O
individual	O
data	O
tables	O
.	O
</s>
<s>
Associative	O
tables	O
are	O
colloquially	O
known	O
under	O
many	O
names	O
,	O
including	O
association	B-Application
table	I-Application
,	O
bridge	B-Application
table	I-Application
,	O
cross-reference	B-Application
table	I-Application
,	O
crosswalk	O
,	O
intermediary	O
table	O
,	O
intersection	B-Application
table	I-Application
,	O
join	B-Application
table	I-Application
,	O
junction	B-Application
table	I-Application
,	O
link	B-Application
table	I-Application
,	O
linking	B-Application
table	I-Application
,	O
many-to-many	B-Application
resolver	I-Application
,	O
map	B-Application
table	I-Application
,	O
mapping	B-Application
table	I-Application
,	O
pairing	O
table	O
,	O
pivot	O
table	O
(	O
as	O
used	O
incorrectly	O
in	O
Laravel	B-Language
-	O
not	O
to	O
be	O
confused	O
with	O
the	O
correct	O
use	O
of	O
pivot	O
table	O
in	O
spreadsheets	O
)	O
,	O
or	O
transition	O
table	O
.	O
</s>
<s>
A	O
SELECT-statement	O
on	O
a	O
junction	B-Application
table	I-Application
usually	O
involves	O
joining	B-Language
the	O
main	O
table	O
with	O
the	O
junction	B-Application
table	I-Application
:	O
</s>
<s>
Inserting	B-Language
into	O
a	O
junction	B-Application
table	I-Application
involves	O
multiple	O
steps	O
:	O
first	O
inserting	B-Language
into	O
the	O
main	O
table(s )	O
,	O
then	O
updating	O
the	O
junction	B-Application
table	I-Application
.	O
</s>
<s>
Using	O
foreign	B-Application
keys	I-Application
,	O
the	O
database	O
will	O
automatically	O
dereference	O
the	O
values	O
of	O
the	O
UserPermissions	O
table	O
to	O
their	O
own	O
tables	O
.	O
</s>
