A modern guide to SQL JOINs
Author: Alexey Makhotkin squadette@gmail.com, (~8800 words)
There are many SQL JOINs guides and tutorials, but this one takes a very different approach. Specifically:
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;
Database Design Book