Skip to content

Commit

Permalink
Update website/docs/sql-reference/joins/sql-left-join.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nghi-ly authored Nov 10, 2023
1 parent ec705a2 commit 2a07b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/sql-reference/joins/sql-left-join.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ Left joins are a fundamental in data modeling and analytics engineering work—t
Something to note if you use left joins: if there are multiple records for an individual key in the left join database object, be aware that duplicates can potentially be introduced in the final query result. This is where dbt tests, such as testing for <Term id="primary-key" /> uniqueness and [equal row count](https://github.com/dbt-labs/dbt-utils#equal_rowcount-source) across upstream source tables and downstream child models, can help you identify faulty data modeling logic and improve data quality.
:::

Where you will not (and should not) see left joins is in [staging models](https://docs.getdbt.com/best-practices/how-we-structure/2-staging) that are used to clean and prep raw source data for analytics uses. Any joins in your dbt projects should happen further downstream in [intermediate](https://docs.getdbt.com/best-practices/how-we-structure/3-intermediate) and [mart models](https://docs.getdbt.com/best-practices/how-we-structure/4-marts) to improve modularity and <Term id="dag" /> cleanliness.
Where you will not (and should not) see left joins is in [staging models](/best-practices/how-we-structure/2-staging) that are used to clean and prep raw source data for analytics uses. Any joins in your dbt projects should happen further downstream in [intermediate](/best-practices/how-we-structure/3-intermediate) and [mart models](/best-practices/how-we-structure/4-marts) to improve modularity and <Term id="dag" /> cleanliness.

0 comments on commit 2a07b7b

Please sign in to comment.