KASA
Back to interview Q&A
Data AnalystSQL Joinsbeginner

What is the difference between INNER JOIN and LEFT JOIN in SQL?

A common SQL interview question for analysts, backend developers, and freshers.

0
Asked by KASA community7 Jul 20263 views
KASA answer
INNER JOIN returns rows where the join condition matches in both tables. If a row from either table does not match, it is not included. LEFT JOIN returns every row from the left table and adds matching data from the right table. If there is no right-side match, the right-side columns become NULL. For example, if you want only users who placed orders, use INNER JOIN between users and orders. If you want all users and their orders if available, use LEFT JOIN.
Cover these points
  • INNER JOIN returns matching rows only.
  • LEFT JOIN keeps all left table rows.
  • Missing right-side rows become NULL in LEFT JOIN.
  • Use examples such as users and orders.

Community answers

0 approved answers

Add answer

No approved community answers yet

Add a clear answer with examples. It will appear after moderation.

Question discussion

Comments and follow-ups

No approved comments yet. Add useful context or ask a follow-up.

Login to join the discussion

Write an answer

Add a practical answer with examples, edge cases, project experience, and points a fresher can speak in an interview.

Login required. Your answer will be connected to your account and sent for moderation.