RelationalTable Extract
This extract allows retrieval of data from a table or view of a relational database without writing a SQL query statement. It allows selecting columns with aliases, filtering with WHERE and HAVING clauses, sorting, and aggregation.
Settings
Connection | Connection to a relational database. |
Schema | The name of the schema in the relational database (if database engine supports schemas). |
Table | The name of the table in the relational database. |
Output columns | Columns that should be returned by RelationalTable extract. |
Where-filter | Operators:
|
Logical filter expression | A Boolean condition can be applied for if several filter conditions have been defined. Valid symbols are: [0-9] ( ) AND OR NOT
Examples:
If no logical filter expression is defined an AND filter is applied, i.e. 1 AND 2 AND ... AND n. |
Sorting | Elements can be sorted in ascending or descending order, with or without case sensitivity. |
Distinct | When checked, only distinct values from the source are returned. |
Aggregated columns |
Use aggregate functions from a relational source. Select the column and type of aggregation. If aggregate functions are used, the GROUP-BY statement is automatically generated from output columns table. Possible aggregations are:
* duplicated result rows are not calculated |
Having-filter | Same as Where-Filter, but applied to result of aggregated columns. |
Logical filter expression | Same as logical filter expression, but applied to Having-filters. |
Query attachment | An optional part of a SQL query with additional options that are appended to the generated SQL statement.
Example: LIMIT 10 OFFSET 10 |
Use caching | Memory, disk or none (default). See article Caching in Extracts. |
Note: if you require other SQL capabilities not covered by this extract, you either have to use a Relational extract, which allows a free SQL query statement, or you have to use separate RelationalTable extracts with subsequent changes.
Using Snowflake connection and JDBC - Snowflake connection can cause a difference in the extracts of the same time data, as each connection type uses a different format for the query result set (relational extract). The JDBC connection uses JSON as the result format, while the native Snowflake connector uses the default Arrow format.
Examples:
- JOIN
- UNION
- Nested SQL statements
Updated November 4, 2024