Skip to main content
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 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:
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: 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

Last modified on November 23, 2026