Which Join Returns All Rows in Both Tables?

DP-600 By islever Editorial Last updated

Short answer

B Use a full outer join to return all rows from both tables in a merge query.

Question

You have a Fabric tenant that contains a lakehouse. You plan to use a visual query to merge two tables. You need to ensure that the query returns all the rows in both tables. Which type of join should you use?
  1. inner
  2. full outer Correct Answer
  3. left outer
  4. right anti
  5. right outer

Key Takeaways

The question tests knowledge of SQL join types and the common trap is confusing partial outer joins (left/right) with a full outer join that preserves all rows from both sides.

To return all rows from both tables in a Fabric lakehouse visual query, a full outer join is required. This page explains why full outer join is the correct choice over inner, left, or right joins.

Common mistake: Choosing left outer or right outer, which only return all rows from one table, not both.

Expert Analysis

Why the Answer Is Correct

A full outer join combines the results of both left and right outer joins. It returns all rows from both the left and right tables, filling missing data with NULLs where there is no match. This directly satisfies the requirement to return all rows in both tables.

Why the Other Options Are Wrong

An inner join (A) only returns rows where there is a match in both tables. Left outer (C) and right outer (E) return all rows from only one table and matched rows from the other. Right anti (D) returns only rows from the right table that have no match in the left table.

Community Comment Notes

The community strongly agrees on the full outer join, noting it is a fundamental SQL concept. As stilferx noted, "FULL OUTER JOIN. Because - ALL rows, not from left, right,... table(s)", and vernillen added that other joins "wouldn't return all the rows in both tables but exclude some."

Official Reference

https://www.w3schools.com/sql/sql_join.asp

This link opens the official vendor documentation in a new tab.

Exam Strategy

When a question specifies returning all rows from both tables without exclusions, immediately look for 'full outer join'. Eliminate inner and anti joins first, then distinguish between left/right and full.

Community Votes

B
100%

100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 6 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors, not of islever. The comments shown first are the most substantive of the thread — ranked by depth, community endorsement and relevance; expand the list below to read the rest.

From public community threads 6

  1. VAzureD 👍 4 Answered B
    FULL (OUTER) JOIN https://www.w3schools.com/sql/sql_join.asp
  2. 2dc6125 👍 3
    B. Left or right will only return one table all rows and other table if exist in the other table. inner will only return if data match in both tables so Full (outer) join will return all data from both tables
  3. stilferx 👍 3 Answered B
    IMHO, 1st grage of SQL school - FULL OUTER JOIN. Because - ALL rows, not from left, right, ... table(s)
  4. Nefirs 👍 2 Answered B
    full outer keeps rows from both sides
  5. vernillen 👍 1 Answered B
    Just making it more obvious, but yea... all other options wouldn't return all the rows in both tables but exclude some.
Show 1 more comment
  1. nappi1 👍 1 Answered B
    since there is no other information on the tables, the answer is the academical one

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Practice All DP-600 Questions

Access 115 questions with complete answers and detailed explanations.

View Full DP-600 Practice Test →

← Back to DP-600 Study Guide