Talend Connect
Virtual Summit
JOIN US!
And visit the Customer
& Community Lounge.
May 27-28, wherever you are.

Making a Sql Union with Talend

Highlighted
One Star

Making a Sql Union with Talend

Hi,
I'd like to retrieve data from 2 tables in my database using "UNION".
I tried the tUnit component which is clearly too slow (I have a lot of lines to unit).
So I would like to make a UNION directly in the sql query. The problem is that I can't figure out how to make a query on several tables using a tXXXSqlInput component. (Indeed we have to fill the "table name" so what am I suppose to write there since there's not only one table in my query ?)
Thanks for answers.
Highlighted

Re: Making a Sql Union with Talend

the Table Name can be blank. Its only there to help in generating query's with the "Guess Query" button.
Just slap your SQL in the "Query" text box and everything should work.
Highlighted
One Star

Re: Making a Sql Union with Talend

Thanks for your answer,
I actually found out that the table name is not necessary... By the way, the tUnit component is not so bad after all, I must have used it with the trace the first time, which explains why it was so long Smiley Wink

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog