1. Home
  2. Database Management Systems
  3. Database Management Systems
  4. Which SQL join returns only the rows that have matching…

Added 2 Nov 2026

Which SQL join returns only the rows that have matching values in both tables?

  1. RIGHT JOIN
  2. CROSS JOIN
  3. LEFT JOIN
  4. INNER JOIN Correct answer

Correct answer

D. INNER JOIN

14 views

MCQSEXAM

Explanation

INNER JOIN keeps only matching rows. LEFT and RIGHT joins also keep unmatched rows from one side, filled with NULLs, and CROSS JOIN returns every combination of rows.

Reference

Asked in: GATE CS, NTS, PPSC, FPSC

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Database Management Systems MCQs

Practise all Database Management Systems MCQs

Similar MCQs