Joining tables

Use the Join page to join tables in an SQL statement. The Join page displays the columns of each table selected on the Tables page.

../rule.gif

To request a join:

  1. Select a column in one of the tables. The tables are displayed in the order that they are shown in the Selected tables list on the Tables page.

  2. Select a column in another table.

    If the columns have compatible data types, a grey line is displayed, connecting the columns, and the Join button is available.

    If the columns do not have compatible data types, an error message is displayed in the status area at the bottom of the window.

  3. Click Join to create the join.

    By default, a join is assumed to be an inner join. You can also request other types of joins by clicking Join Type. The following types of joins are available:

  4. To request additional joins, repeat the previous steps.

  5. To remove a join:

    1. Select the joined columns, or navigate to the join that you want to remove by clicking > or <. A red line indicates the currently selected join. Other joins are indicated by blue lines.

    2. Click Unjoin. The join line is removed.

../rule.gif

Related information

Joins page - Fields and controls

Specifying the tables for an SQL statement

Specifying result columns

Specifying search conditions for rows

Grouping rows and specifying search conditions for groups

Sorting the result set

Verifying the SQL statement

Inserting column values

Updating column values

Completing your SQL statement

Remapping data to another SQL data type

Creating SQL statements with SQL Assist

Logging on to SQL Assist

Selecting the type of SQL statement to create