# Combine Tables

### Overview

This procedure combines multiple tables and merges them into a single table based on specified criteria. This is useful when you have related data spread across multiple sources and want to bring it all together for easier analysis or reporting.

### Input Concepts

| Concept            | Type            | Description                                                                                                                                         | Default    | Required |
| ------------------ | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | -------- |
| `tables`           | list of tables  | The tables to be combined.                                                                                                                          | No default | Yes      |
| `excluded columns` | list of strings | Columns to be excluded from the final table.                                                                                                        | No default | No       |
| `included columns` | dictionary      | Specifies which columns to include from each table. The dictionary keys are table identifiers, and the values are lists of column names to include. | No default | No       |
| `same columns`     | list of strings | Columns that are considered the same across tables and can be merged.                                                                               | No default | No       |

### Output Concepts

| Concept | Description                                                                        |
| ------- | ---------------------------------------------------------------------------------- |
| `table` | A single table that combines the input tables according to the specified criteria. |

### Examples

#### 1. Combine the Tables

```
combine the tables
```

#### 2. Combine the Tables with Optional Arguments

```
combine the tables
    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/query-a-table/combine-tables.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.
