![]() | clearString neatComponents
|
|
![]() | clearString neatComponents
|
| |
Joining multiple tables |
![]() | ||
![]() | Data Integration | ![]() |
Joining multiple tables |
![]() | ![]() |
Often Queries will use information from a single source, however it is possible to specify multiple sources.
A Join (known technically as an 'Inner Join') is used to indicate a relationship between two tables, and tells the Query to combine records from each table based on matches at the join.
It is possible (albeit unusual) to join two tables with more than one join line. In that case each join relationship must match simultaneously for the records to show in the resultset.
It is possible for more than two tables to be involved in joins, with 'table a' joining to 'table b' and 'table b' joining to 'table c' etc.
If more than one table is added to a Query, but there is no join line, then the resultset will show each row in the first table multiple times, once for each row in the second table. This is known as a 'Cross Join', or 'Cartesian Product Join'.
This can be useful if the second table only has one record, to provide access to the field values in that table.
|