Which SQL keyword is placed immediately inside a SELECT statement or an aggregate function to eliminate duplicate rows from the output? MCQ with Answer and Explanation

Which SQL keyword is placed immediately inside a SELECT statement or an aggregate function to eliminate duplicate rows from the output?
A. SINGLE
B. DIFFERENT
C. UNIQUE
D. DISTINCT
Answer: Option D
Solution (By JKSSB Mock Tests)
The DISTINCT keyword is used to remove all duplicate values or records from the output of an SQL SELECT query.

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
Which of the following commands is a part of Transaction Control Language (TCL) in SQL?
A. DELETE
B. GRANT
C. ALTER
D. COMMIT

Correct Answer: Option D


Explanation:
COMMIT is a TCL command used to permanently save all modifications made during the current transaction into the database.

This question belongs to: Computer Database Management System (DBMS)
Question #2
The JOIN operation in SQL is used to:
A. Create a new database
B. Delete rows
C. Sort data
D. Combine rows from two or more tables

Correct Answer: Option D


Explanation:
JOIN combines data from multiple tables based on related columns.

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

Correct Answer: Option A


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)