> For the complete documentation index, see [llms.txt](https://docs.fabricplan.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fabricplan.com/documentation/plan/infobridge/how-tos/query-transformations/join.md).

# Join queries

Use joins to combine data from multiple queries based on a related column. Join queries enrich a dataset by bringing related information from another query.

Infobridge supports the following join types:

* **Inner join**: Returns only records that have matching values in both queries.
* **Left join**: Returns all records from the base (left) query and matching records from the joined (right) query.
* **Right join**: Returns all records from the joined (right) query and matching records from the base (left) query.
* **Full outer join**: Returns all records from both queries, regardless of whether a matching value exists.

### Example scenario

The following example shows regional sales data.

| Region   | Sales | Rate Type ID |
| -------- | ----: | -----------: |
| EMEA     |   25K |          101 |
| AUST     |   30K |          102 |
| DOMESTIC |   15K |          204 |
| APAC     |   28K |          403 |
| HK       |   18K |          302 |
| LATAM    |   10K |          202 |

The tax rate for each region is stored in a separate lookup table.

| Rate Type ID | Tax Rate |            Rate Type |
| ------------ | -------: | -------------------: |
| 101          |      20% | Progressive tax rate |
| 102          |      15% |        Flat tax rate |
| 204          |      12% |  Regressive tax rate |
| 403          |    5.66% |   Corporate tax rate |
| 302          |      19% |      Value added tax |

An inner join returns only records that have matching values in both queries. Because **LATAM** doesn't have a matching rate type, it isn't included in the result.

| Region   | Sales | Rate Type ID | Tax Rate |            Rate Type |
| -------- | ----: | -----------: | -------: | -------------------: |
| EMEA     |   25K |          101 |      20% | Progressive tax rate |
| AUST     |   30K |          102 |      15% |        Flat tax rate |
| DOMESTIC |   15K |          204 |      12% |  Regressive tax rate |
| APAC     |   28K |          403 |    5.66% |   Corporate tax rate |
| HK       |   18K |          302 |      19% |      Value added tax |

A left join returns all records from the base query. Rows without matching values remain in the result, and unmatched columns are blank.

| Region   | Sales | Rate Type ID | Tax Rate |            Rate Type |
| -------- | ----: | -----------: | -------: | -------------------: |
| EMEA     |   25K |          101 |      20% | Progressive tax rate |
| AUST     |   30K |          102 |      15% |        Flat tax rate |
| DOMESTIC |   15K |          204 |      12% |  Regressive tax rate |
| APAC     |   28K |          403 |    5.66% |   Corporate tax rate |
| HK       |   18K |          302 |      19% |      Value added tax |
| LATAM    |   10K |          202 |        — |                    — |

### Join queries in Infobridge

This example joins the **Sales and COGS** query with the **Monthly interest rate** query by using the **Month** column.

The **Sales and COGS** query contains sales and cost data.

<figure><img src="/files/u507auPpiKWMoxcJqxlk" alt=""><figcaption></figcaption></figure>

The **Monthly interest rate** query contains the average monthly interest rates.

<figure><img src="/files/tX2YobUKXIi1cWsvrQlO" alt=""><figcaption></figcaption></figure>

To create a join query:

1. On the **Home** ribbon, select **Join Query**.

2. In the **Join Query** dialog:

   * Select **Sales and COGS** as the **Base Query**.
   * Select **Monthly interest rate** as the **Query To Join**.
   * Under **Columns**, select **Month** for both queries.<br>

   <figure><img src="/files/qWONHScN5Fg9bgffJ0kc" alt=""><figcaption></figcaption></figure>

3. Select the required **Join Type**:
   * **Inner**
   * **Left Outer**
   * **Right Outer**
   * **Full Outer**

4. Select **Apply**.<br>

   <figure><img src="/files/xz6LlkSKfUq5TzAxmYTb" alt=""><figcaption></figcaption></figure>

   Infobridge creates a new query that combines columns from both queries.

   If the joined query contains duplicate join columns, such as **Month** and **Month\_1**, remove the duplicate column from the report layout if it isn't required.<br>

   <figure><img src="/files/7J0ZyV1aqUFaZD1BKCZ1" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.fabricplan.com/documentation/plan/infobridge/how-tos/query-transformations/join.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
