SQL - DISTINCT Operator
Definition
The DISTINCT operator in SQL is used to remove duplicate values from the result set and display only unique records. It helps retrieve different values from one or more columns.
Syntax
SELECT DISTINCT column_name
FROM table_name;
Example
SELECT DISTINCT department
FROM employee;