Skip to content
Sharp

SQL for Java Devs · interview question

Which SQL JOIN type would you use to include all records from the left table and matched records from the right table, inserting NULLs for non-matching rows?

Multiple choiceMediumchapter-8-curatedpremiumsql-for-java-devsjoins
Choose one answer
Answer and explanation

Correct answer

D. LEFT JOIN

Why

A LEFT JOIN returns all records from the left table and the matched records from the right table. If no match is found, NULLs are returned for columns from the right table.

Test yourself on SQL for Java Devs

A free test with instant, explained results. No account needed.

Start free test
All SQL for Java Devs questions →