How can we retrieve each department only once?
The DISTINCT keyword eliminates duplicate rows from the query output, returning only unique values.
Extracting distinct category lists, deduplicating lookup codes, auditing unique entities.
SELECT DISTINCT department
FROM employees;Practice typing production-grade SQL code for DISTINCT.