---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://ydb.tech/docs/en/yql/reference/syntax/select/where.md?version=main
  - https://ydb.tech/docs/ru/yql/reference/syntax/select/where.md?version=main
sourcePath: en/core/yql/reference/syntax/select/where.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ydb.tech/docs/en/llms.txt

# WHERE

Filtering rows in the `SELECT`  result based on a condition in [row-oriented](https://ydb.tech/docs/en/concepts/datamodel/table.md?version=main#row-oriented-tables) or [column-oriented](https://ydb.tech/docs/en/concepts/datamodel/table.md?version=main#column-oriented-tables).

## Example

```yql
SELECT key FROM my_table
WHERE value > 0;
```

