Creating a Snowflake table and a Snowflake sequence
-
Double-click the first tJDBCRow component to open its
Basic settings view. -
Select the Use an existing connection check box and from
the Component List drop-down list displayed, select the
connection component to reuse the connection created by it,
tJDBCConnection_1 in this example. -
In the Query field, enter the SQL command used to create
a new table.In this example, the SQL command is CREATE OR REPLACE TABLE
employee (id INTEGER, name VARCHAR(50), role VARCHAR(50), salary DOUBLE,
PRIMARY KEY(id)), which creates a new table
employee with four columns, id
of INTEGER type as the primary key, name and
role of VARCHAR type, and
salary of DOUBLE type. This table will be used to
store the employee data. -
Double-click the second tJDBCRow component to open its
Basic settings view. -
Select the Use an existing connection check box and from
the Component List drop-down list displayed, select the
connection component to reuse the connection created by it,
tJDBCConnection_1 in this example. -
In the Query field, enter the SQL command used to create
a Snowflake sequence.In this example, the SQL command is create or replace sequence
employee_sequence, which creates a new sequence
employee_sequence. This sequence will be used by the
tJDBCSCDELT component to generate the surrogate key
for SCD Type 2 method.
Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Login
0 Comments