What is the key difference between INNER JOIN and OUTER JOIN in DB2?

  • INNER JOIN retains unmatched rows
  • INNER JOIN selects only the matching rows
  • OUTER JOIN retains unmatched rows
  • OUTER JOIN selects only the matching rows
The key difference lies in how they handle unmatched rows. INNER JOIN returns only the rows that have matching values in both tables, whereas OUTER JOIN returns all rows from both tables, with unmatched rows filled with NULL values. 
Add your answer
Loading...

Leave a comment

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