# QUALIFY Keyword

### Description

Filters records based on window function conditions

### Syntax

```sql
[QUALIFY window_function_condition];
```

### Example

```sql
SELECT
    e.full_name
FROM
    rippling.employee.Employee e
WHERE
    ARRAY_SIZE(e.teams) > 0
QUALIFY
    RANK() OVER (
        PARTITION BY
            e.teams[1]
        ORDER BY
            e.start_date desc
    ) = 1;
```

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

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