COF-C02 · Question #228
Which type of join will list a I rows in the specified table, even if those rows have no match in the other table?
The correct answer is D. Outer join. An outer join returns all rows from one or both specified tables, including rows that have no matching row in the other table. Non-matching rows are filled with NULL values for the columns from the unmatched table. Outer joins come in three forms: LEFT OUTER (all rows from the…
Question
Which type of join will list a I rows in the specified table, even if those rows have no match in the other table?
Options
- ACross join
- BInner join
- CNatural join
- DOuter join
How the community answered
(42 responses)- A5% (2)
- B2% (1)
- C2% (1)
- D90% (38)
Explanation
An outer join returns all rows from one or both specified tables, including rows that have no matching row in the other table. Non-matching rows are filled with NULL values for the columns from the unmatched table. Outer joins come in three forms: LEFT OUTER (all rows from the left table), RIGHT OUTER (all rows from the right table), and FULL OUTER (all rows from both tables). By contrast, an INNER join returns only rows with matches in both tables, a CROSS join returns every combination of rows (no join condition), and a NATURAL join automatically joins on columns with the same name but still only returns matched rows.
Topics
Community Discussion
No community discussion yet for this question.