# Adding a New Table

## 1. Go to Context Manager

Using the left-hand navigation, go to [Context Manager](/data-modeling/context_manager.md).

![add-new-table-context-manager](/files/puEWtcM1JLC8cbbIOk3O)

## 2. Click the "Add new table" button

Tables can be added by clicking the **"Add new table"** button in Context Manager.

Clicking the button will bring up the Add New Table modal.

![add-new-table-modal](/files/qSUUYI2kdyRB3SubkWqj)

## 3. Add a table from data warehouse or upload a CSV

The default tab is "Data Warehouse", which lets you select tables from existing database connections.

Alternatively, file upload is supported for CSVs. Only one table can be selected at a time, and only CSVs can be uploaded. CSV headers must only use alphanumeric characters, spaces, and underscores.

![add-new-table-file-upload](/files/u2nFPjoetDWnS1ekX3Wg)

## 4. Configure table metadata

After selecting a table or CSV to upload, table metadata like name, column data types, default date, and primary key can be configured.

![add-new-table-preview](/files/xacgBu0VXuKt6ZSLozdy)

## 5. Associate table with topic

If the table doesn't join to any existing topics in the data model, add it to a new topic.

![add-new-table-add-joins](/files/2aFi4vSqto4AZ0uiQye0)

If the table does join to an existing topic, add it to an existing topic. Additional joins can also be set up later.

![add-new-table-add-joins](/files/hlS8dMrD70jg4TzhtczL)

## 6. Add table

After associating the table with a topic, the table is added to the data model.

![add-new-table-success](/files/ENwrHRiADJ1jHhmfmT2F)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zenlytic.com/data-modeling/adding_a_new_table.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
