Which rows does an INNER JOIN return?
Correct answer
D. Only rows that have a match in both tables
17 views
D. Only rows that have a match in both tables
17 views
An INNER JOIN pairs rows where the join condition holds and discards everything unmatched on either side, so it can return fewer rows than either input. A LEFT JOIN keeps all left rows and pads missing right columns with NULL, and a FULL OUTER JOIN keeps unmatched rows from both sides. Choosing the wrong join type is a common cause of silently missing records in reports.
Asked in: NTS, PPSC IT, Interviews
Not sure why the answer is D? Ask here and get an explanation.