SQL JOINS — The 3 You Must Know 👇
#likesforlike #trending #explore
SQL JOINS — The 3 You Must Know 👇
1️⃣ INNER JOIN
Returns only the rows that have a match in BOTH tables.
👉 Think: Common data between Table A & Table B
2️⃣ LEFT JOIN
Returns ALL rows from the LEFT table + matching rows from the RIGHT table.
👉 If there’s no match, the right-side columns will show NULL.
3️⃣ RIGHT JOIN
Returns ALL rows from the RIGHT table + matching rows from the LEFT table.
👉 If there’s no match, the left-side columns will show NULL.
🧠 Easy way to remember:
INNER → Only matching rows
LEFT → Everything from LEFT + matches
RIGHT → Everything from RIGHT + matches
📌 Save this for your SQL interview
#likesforlike #trending #explore #viral #dataanalyst
Comments
Comments from the original post on Instagram
No comments yet
