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

DISTINCT Keyword

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

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

Syntax​

SELECT DISTINCT column_name
FROM table_name

Example​

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