An INNER JOIN
between two tables
is pretty straightforward. It shows all records of these two tables
that have the same value in the fields of their foreign key field pair. in Fig 1 the foreign key field pair is (table1.field_e
, table2.field_a
). The solution is represented by the dark blue area, which corresponds to the records of table1
that have a field pair link to table2
.
But what if I want to INNER JOIN
across multiple tables
? Fig 2 shows an example of four tables linked by three foreign key field pairs. What would be the script
for a solution that shows only the records of table1
that are linked up all the way to table4
?