# Move a Column

### Overview

This procedure can move a column in a table to a new position. This is useful when you want to bring important data to the front, match a preferred column order for readability, or prepare your table for export or integration with other systems. To use this procedure, specify which table you're working with and the new position for the column.

### Input Concepts

| Concept             | Type  | Description                      | Default    | Required |
| ------------------- | ----- | -------------------------------- | ---------- | -------- |
| `table`             | table | The table containing the column. | No default | Yes      |
| `new column number` | int   | The new position for the column. | No default | Yes      |

### Output Concepts

| Concept | Description                      |
| ------- | -------------------------------- |
| `table` | The table with the column moved. |

### Examples

#### 1. Move a Column in a Sample Table

{% tabs %}
{% tab title="Automation" %}

```
create a sample table
move the table's "City" column where
    the new column number is 1
```

{% endtab %}

{% tab title="Results" %}

| Name          | City          | Number             | Address          |
| ------------- | ------------- | ------------------ | ---------------- |
| john          | San Francisco | + 1 (415) 691 9426 | 123 east street  |
| joe           | San Jose      | + 1 (415) 691 1234 | 321 west street  |
| jack          | San Francisco | + 1 (415) 691 4595 | 213 north street |
| {% endtab %}  |               |                    |                  |
| {% endtabs %} |               |                    |                  |


---

# 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/get-a-column/move-a-column.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.
