Learn how to define joins between a table or View and another table, View, or Worksheet

Joining a table or View to another table, View, or Worksheet creates a relationship that allows them to be searched together. Choose a column to join on that both tables contain (e.g. employee ID or product key). This process creates a generic join between the table or View and the other table, View, or Worksheet on the column you specify.

You must have either the Can administrator ThoughtSpot or the Can manage data privilege to create a join relationship. If you’re not an administrator, you also need edit permissions on the table, View, or Worksheet.

When creating a join between the columns in two data sources, the linked columns must have the same data type, with the same meaning. That is, they must represent the same data. Normally, you can make this kind of link from a fact table column to a column in a dimension table that uniquely identifies a logical entity in your data such as Employee ID for a person, Product ID for a product, or Date Key for a specific date in a date lookup table.

To create a relationship through the Web interface:

  1. Click Data in the top menu, and choose Tables or Views.

  2. Find your table or View through browsing, Search, or selecting the appropriate Tag(s).

  3. To select the table or View for adding joins, click its name in the list. You will see the Columns view of the data source.

  4. Click the Joins tab. The list of existing joins appears.

  1. Click +Add Join. The Create Join page appears.

Legend Action
1. Select the data source of your table or View, either Connection, or Falcon.
2. Choose your connection from the dropdown Connection menu. You can only create joins between data sources uploaded through the same connection.
3. [Optional] Click Enter join name to name your join. Note that ThoughtSpot automatically names joins using the following syntax: [OriginDataSourceName]_to_[DestinationDataSourceName]. You can always enter a more meaningful join name, either when creating, or when editing the join.
  1. Under Table 1, choose the table you want to create a join from (origin table).

  2. Under Table 2, choose the destination table or View for the other end of the join.

  3. Choose the matching columns under each table. These columns must use the same data type. [Optional] You can select multiple columns for the same join. To add another pair of matching columns to the join definition, click +Add columns.

  4. Specify the join type; see Join types.

  5. Specify the join cardinality; see Cardinality.

  6. Click Create join.

  7. Repeat these steps until all the joins you want to make have been created.

After creating the join, you may change its name, type, or cardinality by clicking the edit icon. If you want to change the data source or column being joined, you must delete the join and create a new one.