> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e6data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Run a transformation

> Transform a small order dataset and verify its output in Workbench.

Tutorial

Calculate sales by category from six orders. The complete input is included in the query, so the example needs no catalog connection or table creation.

## Prerequisites

* Access to Workbench in a running deployment.
* Available compute that can execute SQL.

See [Prerequisites](https://docs.e6data.com/transformation/get-started/prerequisites.md) for access requirements.

## 1. Open Workbench

Open Workbench in your deployment and select available compute. Create a SQL query.

## 2. Run the transformation

Copy and execute this complete statement:

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
WITH orders(order_id, category, region, amount) AS (
  VALUES
    (1, 'Books',  'North', 20),
    (2, 'Games',  'South', 30),
    (3, 'Games',  'North', 15),
    (4, 'Books',  'North', 40),
    (5, 'Garden', 'South', 25),
    (6, 'Garden', 'North', 10)
)
SELECT category, SUM(amount) AS sales
FROM orders
GROUP BY category
ORDER BY category;
```

The `WITH` clause defines input for this statement. `GROUP BY` combines orders by category, and `SUM` calculates each category's sales.

## 3. Verify the output

Wait for the query to reach `Succeeded`. Confirm these rows:

| category | sales |
| - | -: |
| Books | 60 |
| Games | 45 |
| Garden | 35 |

The output contains three rows and a combined sales value of 140. This query returns rows without creating or changing a stored table.

## 4. Finish the session

Close the Workbench session when finished. This example creates no stored tables or external files.

## Next steps

* [Create a workload](https://docs.e6data.com/transformation/workloads/first-workload.md) to save and repeat a transformation.
* [Connect data](https://docs.e6data.com/transformation/recipes/overview.md) to query an existing catalog or file source.
* [Publish a table result](https://docs.e6data.com/transformation/workloads/publish-results.md) to write a destination table.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.