Which join returns only matching rows from both tables?

Prepare for IT Operations Management exams. Use our extensive question bank and real-world scenarios to master the subject. Get ready for your ITOM exam with confidence!

Multiple Choice

Which join returns only matching rows from both tables?

Explanation:
The idea is to return only rows where there is a matching value in both tables based on the join condition. An inner join does exactly that: it combines rows from the two tables only when the join condition is satisfied in both, so you get rows that exist in both datasets—for example, customers who have placed orders. Other join types handle non-matches differently: outer joins keep non-matching rows and fill with NULLs, left joins keep all rows from the left table regardless of a match, and cross joins produce every possible combination of rows from the two tables. Therefore, the inner join is the one that yields only matching rows from both tables.

The idea is to return only rows where there is a matching value in both tables based on the join condition. An inner join does exactly that: it combines rows from the two tables only when the join condition is satisfied in both, so you get rows that exist in both datasets—for example, customers who have placed orders. Other join types handle non-matches differently: outer joins keep non-matching rows and fill with NULLs, left joins keep all rows from the left table regardless of a match, and cross joins produce every possible combination of rows from the two tables. Therefore, the inner join is the one that yields only matching rows from both tables.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy