Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

any option for cross join

hello everyone,

is there any way to apply cross join through talend.?

i have 3 tables and want to get related data through cross join.

 

Labels (2)
2 Replies
Anonymous
Not applicable
Author

If the tables are in the same database, just perform the cross-join there. Your DB components can handle ANY legitimate SQL.

 

If they are not in the same DB, you can achieve this by using two tMap components in the format shown below....

                        Dataset B               Dataset C

                               |                        |

Dataset A ------> tMap_1--------->tMap_2------------>cross-joined content


Your Dataset A is fed into the tMap_1 as the Main flow. The DatasetB is a lookup which is not joined. Output all columns from that. Then connect another tMap with the output of tMap_1. Add a lookup with Dataset C. Do not join the lookup. Output all of the columns.

 

Every row that enters via the Main flow of tMap_1 will be multiplied by every row in Dataset B. Likewise, every row that enters tMap_2 will be multiplied by Dataset C.

Anonymous
Not applicable
Author

Did this resolve your issue?