diff --git a/website/docs/docs/dbt-cloud-apis/sl-jdbc.md b/website/docs/docs/dbt-cloud-apis/sl-jdbc.md index ea0afbcfbad..88840ec8e61 100644 --- a/website/docs/docs/dbt-cloud-apis/sl-jdbc.md +++ b/website/docs/docs/dbt-cloud-apis/sl-jdbc.md @@ -542,6 +542,19 @@ select * from {{ semantic_layer.query(saved_query="new_customer_orders", limit=5 The JDBC API will use the saved query (`new_customer_orders`) as defined and apply a limit of 5 records. +### Multi-hop joins + +In cases where you need to query across multiple related tables (multi-hop joins), you can use the `entity_path` argument to specify the path between related entities. The following are examples of how you can define these joins: + +- In this example, you're querying the `location_name` dimension but specifying that it should be joined using the `order_id` field. + ```sql + {{Dimension('location__location_name', entity_path=['order_id'])}} + ``` +- In this example, the `salesforce_account_owner` dimension is joined to the `region` field, with the path going through `salesforce_account`. + ```sql + {{ Dimension('salesforce_account_owner__region',['salesforce_account']) }} + ``` + ## FAQs