I am using KNIME Desktop open source on top of a Teradata (TD) database.
Within TD it is possible to create volatile/temp tables. These are tables that only exisit in the user session and will automatically be dropped after the session closes (like the WORK lib in SAS).
This is very handy since in our scripts we use a lot of intermediary tables to get to the data we want. I have however no clue on how to execute these statements together in one db session from KNIME.
I have statement one for the volatile table:
CREATE VOLATILE TABLE temp_input AS ( SELECT ........ ) with data primary index (subscriber_id);
and the second statement :
CREATE TABLE flat_train AS ( SELECT ........ FROM temp_input) with data primary index (subscriber_id);
When I try to execute these through a database reader node I get the following error
ERROR Database Reader Execute failed: [Teradata Database] [TeraJDBC 14.10.00.17] [Error 3932] [SQLState 25000] Only an ET or null statement is legal after a DDL Statement.
Any help is appreciated