What is the difference between an inner join and an outer join? MCQ with Answer and Explanation

What is the difference between an inner join and an outer join?
A. Inner join returns only matching rows; outer join returns matching plus non-matching rows from one or both tables
B. Outer join is used for more than two tables
C. They are the same
D. Inner join returns all rows; outer join returns matching only
Answer: Option A
Solution (By JKExamLibrary)
Inner join returns rows where the join condition matches. Outer join (left, right, full) returns unmatched rows as well with NULLs.

This question belongs to: Computer Database Management System (DBMS)

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1 Report Error
Which clause is used in a SQL SELECT statement to organize matching rows into summary groups based on one or more columns?
A. SORT BY
B. GROUP BY
C. HAVING
D. ORDER BY

Correct Answer: Option B


Explanation:
The GROUP BY clause groups rows that have the same values into summary rows, often used alongside aggregate functions like COUNT(), MAX(), or AVG().

This question belongs to: Computer Database Management System (DBMS)
Question #2 Report Error
Which of the following ensures data integrity in RDBMS?
A. No validation rules
B. Random data entry
C. Constraints like primary key, foreign key
D. User input without checks

Correct Answer: Option C


Explanation:
Integrity constraints such as keys enforce rules for valid data.

This question belongs to: Computer Database Management System (DBMS)
Question #3 Report Error
In an Entity-Relationship (ER) diagram, what geometric shape is used to represent an entity type?
A. Triangle
B. Ellipse
C. Rectangle
D. Diamond

Correct Answer: Option C


Explanation:
In standard ER modeling notation, rectangles are used to represent entity sets or entity types.

This question belongs to: Computer Database Management System (DBMS)