Previous page | Data Integration | Next page |
Joining multiple tables |
Working with multiple tables in a QueryOften Queries will use information from a single source, however it is possible to specify multiple sources.
Joining tablesA 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. To use fields from more than one table
To specify a join
To remove a 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. Cross joinsIf 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. |