# PARTITION BY Keyword

### Description

Defines partitions within a function

### Syntax

```sql
SELECT column_name
FROM table_name
WHERE column_name PARTITION value1, value2, valueN
```

### Example

```sql
SELECT 
  e.full_name,
  e.start_date,
    MAX(e.start_date)
      OVER (
        PARTITION BY e.department) AS max_department_start_date
FROM   
  rippling.employee.Employee e;
```

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

> 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.
