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

> System table containing information about existing projections in all tables.

# system.projections

<h2 id="description">
  Description
</h2>

Contains information about existing projections in all tables.

<h2 id="columns">
  Columns
</h2>

* `database` ([String](/reference/data-types/index)) — Database name.
* `table` ([String](/reference/data-types/index)) — Table name.
* `name` ([String](/reference/data-types/index)) — Projection name.
* `type` ([Enum8('Normal' = 0, 'Aggregate' = 1)](/reference/data-types/index)) — Projection type.
* `sorting_key` ([Array(String)](/reference/data-types/index)) — Projection sorting key.
* `query` ([String](/reference/data-types/index)) — Projection query.
* `settings` ([Map(String, String)](/reference/data-types/index)) — Projection settings.

<h2 id="example">
  Example
</h2>

```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:     {}
```
