# Create a Combined Table

### Overview

This procedure creates a combined table from two or more existing tables.

### Input Concepts

| Concept            | Type            | Description                                                                                                                                      | Default    | Required                                                          |
| ------------------ | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | ---------- | ----------------------------------------------------------------- |
| `first table`      | table           | The first table to be combined.                                                                                                                  | No default | Either `tables` or `first table` and `second table` are required. |
| `second table`     | table           | The second table to be combined.                                                                                                                 | No default | Either `tables` or `first table` and `second table` are required. |
| `tables`           | list of tables  | A list of tables to be combined.                                                                                                                 | No default | Either `tables` or `first table` and `second table` are required. |
| `excluded columns` | list of strings | A list of column names to be excluded from the combined table.                                                                                   | No default | No                                                                |
| `included columns` | dictionary      | A dictionary specifying which columns to include from each table. The keys are table names, and the values are lists of column names to include. | No default | No                                                                |
| `same columns`     | list of strings | A list of column names that are the same across all tables and should be combined into a single column in the combined table.                    | No default | No                                                                |

### Output Concepts

| Concept | Description                                                                                                                                                    |
| ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `table` | A combined table created from the specified tables, with considerations for excluded and included columns, as well as columns that are the same across tables. |

### Examples

#### 1. Create a Combined Table From the Tables

```
create a combined table with
    the tables
```

#### 2. Create a Combined Table From the First and Second Tables

```
create a combined table with
    the first table
    the second table
    the excluded columns are "ID", "Timestamp"
    the same columns are "Name", "Email"
```


---

# 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.kognitos.com/legacy/legacy-experience/automation-areas/tables-v2/create-a-table/create-a-combined-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.
