In a SQL JOIN operation, which keyword is used to return all records when there is a match in one of the tables?

  • INNER JOIN
  • RIGHT JOIN
  • LEFT JOIN
  • FULL JOIN
In a SQL JOIN operation, the LEFT JOIN keyword is used to return all records from the left (or first) table, and the matched records from the right (or second) table. If there's no match in the right table, NULL values are returned. This is useful when you want to retrieve all records from one table and only matching records from another. It's commonly used to create inclusive result sets.
Add your answer
Loading...

Leave a comment

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