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

  • Only returns matched rows from both tables
  • Returns all rows from both tables
  • Returns all rows from the left table
  • Returns all rows from the right table
INNER JOIN and LEFT JOIN are both SQL join clauses used to combine rows from two or more tables based on a related column between them. INNER JOIN returns only the matched rows from both tables, while LEFT JOIN returns all rows from the left table and the matched rows from the right table.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *