Skip to content

Transform using sql

Description

The Transform using SQL activity allows users to reshape and manipulate tabular data using SQL queries. This is useful for applying complex filters, aggregating numeric values, computing derived columns, or selecting specific fields — all using standard SQL syntax.

It acts as a virtual SQL layer over the output of the previous activity, enabling analytics, data normalization, and workflow-specific transformations.


Input

FieldDescription
DataTabular data from the previous activity.

Input must have at least one column and one row to be processed.


Output

FieldDescription
TransformedThe resulting table after executing the SQL query on the input data.

Output structure depends on the SELECT, GROUP BY, and other clauses used in the SQL query.


Configuration Fields

FieldRequiredDescription
QueryYesThe SQL query used to transform the input data. Reference actual column names.

Sample Configuration

SELECT Column1, SUM(Column2) AS Total
FROM InputTable
GROUP BY Column1

Note: InputTable is the alias for the input dataset provided automatically by the system.


Sample Input

Column1Column2Column3
A50120
B3090
A20150
B40110
C25130

Sample Output

Column1Total
A70
B70
C25