How do you achieve a UNION or UNION ALL using the tELT components in talend?

Highlighted
Four Stars

How do you achieve a UNION or UNION ALL using the tELT components in talend?

Hi, can someone explain how to accomplish UNION and UNION all in the tELT components in Talend?

 

My use case is to merge 2 tables into 1 that will have a sparse presentation.

 

e.g. Table A has ID and String1, String2 and Table B has ID and String1, String3.

 

The desired output table is ID, String1, String2, String3 with sparse results in String2 and String3.

 

The query in SQL looks like this:

 

SELECT ID, String1, String2, null as String3

UNION ALL

SELECT ID, String1, null, String3

Moderator

Re: How do you achieve a UNION or UNION ALL using the tELT components in talend?

Hello,

Are your two tables from one database or not when you are using ELT components?

For UNION or UNION ALL operations, it can be implemented by doing a join on tMap.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

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