Which join type returns all records from both tables including unmatched rows, with NULLs where there is no match?

Enhance your skills with the CompTIA Data+ Certification Test. Engage with flashcards, tackle challenging multiple choice questions, complete with hints and explanations. Get yourself exam-ready now!

Multiple Choice

Which join type returns all records from both tables including unmatched rows, with NULLs where there is no match?

Explanation:
The concept tested is how join types handle rows that don’t have a match in the other table. A full outer join returns every row from both tables, and when a row from one table has no matching row in the other, the missing side is filled with NULLs. That’s why it’s the correct choice here: you see all records from both sides, with NULLs where there is no match. Inner join would only include rows with matches in both tables, so unmatched rows are excluded. Cross join produces every possible combination of rows from the two tables, not about matching at all. Left outer join includes all rows from the left table (with NULLs on the right when there’s no match) but does not bring in unmatched rows from the right table.

The concept tested is how join types handle rows that don’t have a match in the other table. A full outer join returns every row from both tables, and when a row from one table has no matching row in the other, the missing side is filled with NULLs. That’s why it’s the correct choice here: you see all records from both sides, with NULLs where there is no match.

Inner join would only include rows with matches in both tables, so unmatched rows are excluded. Cross join produces every possible combination of rows from the two tables, not about matching at all. Left outer join includes all rows from the left table (with NULLs on the right when there’s no match) but does not bring in unmatched rows from the right table.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy