Database Management
Accenture PrimermediumDatabase Management05 Sql Select Statement

How to retrieve department_id column without any duplication from employee relation?

Answer options

A
SELECT DISTINCT department_id FROM employee;
B
SELECT department_id FROM employee;
C
SELECT UNIQUE department_id FROM employee;
D
SELECT TOP 1 department_id FROM employee;

Correct answer: SELECT DISTINCT department_id FROM employee;

Explanation

DISTINCT removes duplicates from the result set.

Related Accenture Database Management questions

Practice more Accenture Database Management questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.