Database Management
primer-original-v2mediumDatabase Management05 Sql Select Statementprimer-original-v2

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

Quick AnswerThe correct answer is SELECT DISTINCT department_id FROM employee; because it directly addresses the core logic of Database Management.

This question has been retained as-is due to its unique context.

Related Database Management questions

Practice more Database Management questions

PrimerPrep has independently reviewed practice questions and coding exercises — all free.