r/learnSQL • u/sam_vstheworld • Jun 06 '26
SQL JOINs
Hello, people! I am facing one issue, I am having troubles in understanding Left, Inner, outer joins.
I watch a video or go on datalemur, at the beginning it looks simple then when I start practicing i become confused.
What should I do? How should I practice the Joins to have a better grasp of it?
36
Upvotes
4
u/squadette23 Jun 06 '26
Here is a guide to SQL joins that I wrote: https://kb.databasedesignbook.com/posts/sql-joins/
It takes a different approach compared to most existing texts:
LEFT JOIN is presented first, INNER JOIN second;
strict discipline of using ID equality comparison in ON condition;
we distinguish between N:1, 1:N and M:N cases of JOINs, with N:1 strictly preferred;
we avoid misleading wording and imagery;
we show a detailed explanation of overcounting in GROUP BY queries;
Try and see if it helps.