# DEPARTMENT_PATH() Function

### Description

Returns the department hierarchy path for a role (Rippling-specific).

### Syntax

```sql
DEPARTMENT_PATH(department)
```

### Parameters

| Parameter | Description | Data Type | Required |
| --- | --- | --- | --- |
| _department_ | The department argument | Any | Yes |

### Example

```sql
SELECT
    DEPARTMENT_PATH(role_id)
FROM
    rippling.employee.Employee
LIMIT
    5;
```

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

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