A LEFT JOIN returns:
-
A
only the matching rows from both tables
-
B
all rows of the right table only
-
C
all rows of the left table plus matches from the right
Correct answer
-
D
the union of both tables with no duplicates kept
Correct answer
C. all rows of the left table plus matches from the right
14 views
Explanation
Unmatched right-side columns appear as NULL in a LEFT JOIN.
Reference
Asked in: NTS, PPSC IT, Interviews
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ