When Duplicate Records Appear in Results, Suspect LEFT JOIN / INNER JOIN
I’ll introduce a story about how when duplicate records appear in SQL results, you should suspect LEFT JOIN / INNER JOIN.
When I executed a query in Google BigQuery, unexpected duplicate records appeared in the results, so I investigated with the following steps:
During this process, I found a problem in the section using LEFT JOIN.
For solutions to the duplicate records problem, please refer to the following articles.
When you encounter duplicate records issues, first suspect the JOIN.
That’s all from the Gemba, where I want to suspect LEFT JOIN / INNER JOIN when duplicate records appear in SQL results.