# DISTINCT Keyword

### Description

-   Omits records that contain duplicate data in the selected fields
-   Used with aggregate functions to return unique values

### Syntax

```sql
SELECT DISTINCT column_name
FROM table_name
```

### Example

```sql
SELECT 
    COUNT(DISTINCT e.department)
FROM
    rippling.employee.Employee e; 
```

Source: https://developer.rippling.com/documentation/rippling-platform/transformations/sql-reference/distinct

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
