Which operator is used to combine the distinct result sets of two or more SELECT queries into a single output, automatically filtering out duplicate rows? MCQ with Answer and Explanation

Which operator is used to combine the distinct result sets of two or more SELECT queries into a single output, automatically filtering out duplicate rows?
A. EXCEPT
B. INTERSECT
C. UNION
D. UNION ALL
Answer: Option C
Solution (By JKSSB Mock Tests)
The UNION operator merges the result sets of two queries, removing any duplicate records. UNION ALL performs a similar merge but retains duplicates.

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
What is a database transaction?
A. A query that reads data
B. A logical unit of work that consists of one or more SQL statements
C. A database schema
D. A backup copy of the database

Correct Answer: Option B


Explanation:
A transaction is a sequence of operations performed as a single logical unit, ensuring ACID properties.

This question belongs to: Computer Database Management System (DBMS)
Question #2
Which SQL keyword is placed immediately inside a SELECT statement or an aggregate function to eliminate duplicate rows from the output?
A. DISTINCT
B. UNIQUE
C. SINGLE
D. DIFFERENT

Correct Answer: Option A


Explanation:
The DISTINCT keyword is used to remove all duplicate values or records from the output of an SQL SELECT query.

This question belongs to: Computer Database Management System (DBMS)
Question #3
What is a data dictionary in a DBMS?
A. A table containing user data
B. A log file
C. A backup of the database
D. A repository of metadata about the database

Correct Answer: Option D


Explanation:
The data dictionary stores metadata such as table definitions, column types, constraints, and other database objects.

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