Extension list

Skip to main content

List of all our extensions

Create an account

JP CS Data Query - Left Join 2


Article Index

Left Join 2

JP CS DataQuery supports a second LEFT OUTER JOIN for more advanced database relationships.

The second join can connect either directly to the Main Table or to the table introduced by Left Join 1.

Enable Left Join 2

Enable this option when information from a third database table is required.

Join Table 2

Select the third database table that should be included in the query.

Join 2 Source Table

Select which existing table should provide the source column for the second relationship:

  • Main Table (t0) – Join Table 2 is connected directly to the Main Table.
  • Join Table 1 (t1) – Join Table 2 is chained from the first joined table.

Source Table Column

Select the column from the selected source table that should be used for the relationship.

Table 2 - Right Column

Select the matching column from Join Table 2.

When joining from the Main Table, the relationship works as follows:

LEFT JOIN #__join2_table AS t2
ON t0.join2_left = t2.join2_right

When chaining from Join Table 1, the relationship works as follows:

LEFT JOIN #__join2_table AS t2
ON t1.join2_left = t2.join2_right
Ordering and Quantity
Page