Making a Sql Union with Talend

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.

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

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Downloads and Trials

Test drive Talend's enterprise products.

Downloads