Skip to content
Home
Database Management Systems
Database Management Systems
Which SQL join returns only the rows that have matching…
Which SQL join returns only the rows that have matching values in both tables?
A
RIGHT JOIN
B
CROSS JOIN
C
LEFT JOIN
D
INNER JOIN
Correct answer
Correct answer
D. INNER JOIN
14 views
⚔️
Challenge a friend on Database Management Systems
Same MCQs, timed, live leaderboard. Send the link on WhatsApp – no sign-up needed.
Create challenge
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
Doubts & discussionNot sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ
‹ Previous MCQ In SQL, a view is: Next MCQ › Each department has many employees, and each employee belongs to one department. From Department to Employee, the relationship is:
× Get 10 free MCQs every day for PPSC, FPSC & NTS preparation
MG Ask MCQ Guru Need help? Find an MCQ, a short question, a test or your certificate. Just ask.×