Concept Flow - LEFT JOIN vs RIGHT JOIN decision
Start with LEFT JOIN
Include all rows from Left Table
Match rows from Right Table
If no match, fill Right Table columns with NULL
Result: All Left Table rows + matched Right Table rows
Start with RIGHT JOIN
Include all rows from Right Table
Match rows from Left Table
If no match, fill Left Table columns with NULL
Result: All Right Table rows + matched Left Table rows
LEFT JOIN keeps all rows from the left table, matching right table rows or NULLs; RIGHT JOIN keeps all rows from the right table, matching left table rows or NULLs.