> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omni.co/llms.txt
> Use this file to discover all available pages before exploring further.

# base_view

> References the view that is used in the FROM of the generated SQL.

Alternatively, think of the base view as the view that all subsequent views will join to when building a query.

## Syntax

```yaml theme={null}
query:
  base_view: <view_name>
```

## Properties

<ParamField path="query" type="object[]">
  An object containing the individual parameters that make up a query view's query definition.

  <Expandable title="query properties" defaultOpen="true">
    <ParamField path="base_view" type="string">
      The name of the view to use as the base for the query. Only one base view is allowed per query view.
    </ParamField>
  </Expandable>
</ParamField>

## Examples

```yaml title="Query with a users base_view" theme={null}
query:
  fields:
    users.age: age
    users.created_at[year]: created_at_year
    calc_1: calc_1
  base_view: users
```
