> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8a08bda2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Системная таблица с информацией о существующих проекциях во всех таблицах.

# system.projections

<div id="description">
  ## Описание
</div>

Содержит сведения о существующих проекциях во всех таблицах.

<div id="columns">
  ## Столбцы
</div>

* `database` ([String](/ru/reference/data-types)) — Имя базы данных.
* `table` ([String](/ru/reference/data-types)) — Имя таблицы.
* `name` ([String](/ru/reference/data-types)) — Имя проекции.
* `type` ([Enum8('Normal' = 0, 'Aggregate' = 1)](/ru/reference/data-types)) — Тип проекции.
* `sorting_key` ([Array(String)](/ru/reference/data-types)) — Ключ сортировки проекции.
* `query` ([String](/ru/reference/data-types)) — Запрос проекции.
* `settings` ([Map(String, String)](/ru/reference/data-types)) — Настройки проекции.

<div id="example">
  ## Пример
</div>

```sql theme={null}
SELECT * FROM system.projections LIMIT 2 FORMAT Vertical;
```

```text theme={null}
Row 1:
──────
database:    default
table:       landing
name:        improved_sorting_key
type:        Normal
sorting_key: ['user_id','date']
query:       SELECT * ORDER BY user_id, date
settings:     {}

Row 2:
──────
database:    default
table:       landing
name:        agg_no_key
type:        Aggregate
sorting_key: []
query:       SELECT count()
settings:     {}
```
