SQL Component

SQL Component

Write your own complete SQL SELECT statement.

This component can run queries on any tables in the project. You may link one or more inputs into the SQL component to indicate which data sources are used within the query. The SQL Component can also be used as a source (e.g. the first component in the Transformation job workflow) and thus does not strictly require any input links from other components.

Note: In your 'FROM' clause, you must use a special syntax to refer to data inputs:

$T{input-name}

Properties

Property Setting Description
Name Text The descriptive name for the component.
SQL Text The SQL Query.

Strategy

Runs your own SELECT statement.


Example

This example reads from the airports table, and add a CRC32 checksum based on the value of the input field "IATA".

The query requires a name, and the actual SQL code.

The query is entered. Notice how the input table is referred to using the special syntax:

$T{input-name}

A preview confirms everything is working OK.