0
0
SQLquery~5 mins

FULL OUTER JOIN behavior in SQL - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does a FULL OUTER JOIN do in SQL?
It returns all rows from both tables, matching rows where possible. If there is no match, it fills with NULLs for the missing side.
Click to reveal answer
beginner
How does FULL OUTER JOIN differ from INNER JOIN?
INNER JOIN returns only rows with matching keys in both tables. FULL OUTER JOIN returns all rows from both tables, matching where possible and filling NULLs where no match exists.
Click to reveal answer
beginner
In a FULL OUTER JOIN, what happens if a row in the left table has no matching row in the right table?
The row from the left table appears in the result with NULL values for the right table's columns.
Click to reveal answer
beginner
Write a simple SQL query using FULL OUTER JOIN between tables A and B on column id.
SELECT * FROM A FULL OUTER JOIN B ON A.id = B.id;
Click to reveal answer
intermediate
Why might you use FULL OUTER JOIN instead of LEFT or RIGHT JOIN?
To get a complete view of all data from both tables, including unmatched rows from both sides.
Click to reveal answer
What does FULL OUTER JOIN return?
AAll rows from the left table only
BOnly matching rows from both tables
CAll rows from the right table only
DAll rows from both tables, matching where possible, NULLs otherwise
If a row in the right table has no match in the left table, what does FULL OUTER JOIN do?
AExcludes the row
BIncludes the row with NULLs for left table columns
CIncludes the row with NULLs for right table columns
DReturns an error
Which JOIN type returns only rows with matching keys in both tables?
AFULL OUTER JOIN
BLEFT JOIN
CINNER JOIN
DRIGHT JOIN
What keyword is used in SQL for a FULL OUTER JOIN?
AFULL OUTER JOIN
BALL JOIN
COUTER JOIN
DFULL JOIN
Which scenario best fits using FULL OUTER JOIN?
AYou want all records from both tables, including unmatched
BYou want all records from left table only
CYou want only matching records
DYou want only unmatched records
Explain in your own words how FULL OUTER JOIN works and when you would use it.
Think about combining two lists fully, including unmatched items.
You got /4 concepts.
    Write a simple SQL query using FULL OUTER JOIN and describe what the output will look like.
    Use SELECT * FROM table1 FULL OUTER JOIN table2 ON condition.
    You got /4 concepts.