For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
Index

PARTITION BY Keyword

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Defines partitions within a function

Syntax​

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

Example​

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;