> For the complete documentation index, see [llms.txt](https://upsolver.gitbook.io/content/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://upsolver.gitbook.io/content/quickstarts-1/jobs/transformation.md).

# Transformation

Transformation jobs copy your source data to your target and are written using familiar SQL code. These Quickstart guides will provide you with the essential skills to write a transformation job, however, Upsolver includes an extensive list of functions and operators that you can use to build advanced solutions for your requirements. &#x20;

Before writing a transformation job, ensure you have a connection to your target and that your ingestion job is running.&#x20;

| Managing Data                                                                                                                                                                                                   |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><a href="/pages/TNo3JdRfT2a8szG2jA3E">Upsert Data to the Target Table</a><br>Perform inserts and updates in your target data using the <code>INSERT</code> and <code>MERGE</code> statements.</p>            |
| <p><a href="/pages/6JsYs3OItuMf8LP8Zps5">Delete Data from the Target Table</a><br>Find out how to use the <code>MERGE</code> statement to delete rows from the target that have been deleted in the source.</p> |
| <p><a href="/pages/VScVHs9Pf3oQttZjY2ZC">Aggregate and Output Data</a><br>Understand how to aggregate data when transforming data in the staging zone.</p>                                                      |
| <p><a href="/pages/nKrs5RZlEZKa6f611kv6">Join Two Data Streams</a><br>Learn how to join multiple data streams into one table using a <code>MATERIALIZED VIEW</code>.</p>                                        |

| Data Targets                                                                                                                                          |
| ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><a href="/pages/zFq8zkHihrvLBQo1bBYd">Output to Amazon Athena</a><br>Learn how to create a job that writes to Amazon Athena.</p>                   |
| <p><a href="/pages/YMLUNgqrsry1JI0JUNUY">Output to Amazon Redshift</a><br>Find out how to write a transformation job to write to Amazon Redshift.</p> |
| <p><a href="/pages/kSVq7wStwYtiDp7wyocR">Output to Amazon S3</a><br>Discover how you can create a job that copies your data to Amazon S3.</p>         |
| [Output to Elasticsearch](/content/quickstarts-1/jobs/transformation/data-targets/output-to-elasticsearch.md)                                         |
| Learn how to write a transformation job to copy your data to Elasticsearch.                                                                           |
| <p><a href="/pages/nR7OLaP4QDqADlpckqi2">Output to Snowflake</a><br>Write a job that copies writes to a Snowflake table.</p>                          |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://upsolver.gitbook.io/content/quickstarts-1/jobs/transformation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
