# GROUP BY Keyword

### Description

Groups rows sharing a property for aggregate functions

### Syntax

```sql
SELECT column_name(s)
FROM table_name
GROUP BY column_name(s)
```

### Example

```sql
SELECT 
    e.department,
    COUNT(e.id)
FROM
    rippling.employee.Employee e
GROUP BY 
    e.department;
```

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

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