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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Lorenzo5
Creator
Creator

How to perform a CROSS JOIN with Talend?

I have two row links from two different tables, and need to combined them in a Cartesian way. Any idea?

Could iterate link (instead of row link) helps me, somehow?

 

Thank you,

Lorenzo

 

---

The SQL CROSS JOIN produces a result set which is the number of rows in the first table multiplied by the number of rows in the second table.

This kind of result is called as Cartesian Product.

Labels (2)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

It works as expected:

0683p000009Luji.png

Got 3 lines in main table ("aaaaa", "bbbbb", "ccccc") and 2 lines in the lookup ("AAAAA", "BBBBB").

The result contains 6 lines:

Starting job test at 20:01 29/05/2017.

[statistics] connecting to socket on port 4063
[statistics] connected
.-----+-----.
|tLogRow_35 |
|=----+----=|
|aaa  |bbb  |
|=----+----=|
|aaaaa|AAAAA|
|aaaaa|BBBBB|
|bbbb |AAAAA|
|bbbb |BBBBB|
|ccccc|AAAAA|
|ccccc|BBBBB|
'-----+-----'

[statistics] disconnected
Job test ended at 20:01 29/05/2017. [exit code=0]

Hope this helps.

 

View solution in original post

4 Replies
TRF
Champion II
Champion II

Never tried before, but what if you use a tMap with these 2 tables, 1 one as main and 1 as lookup, then no join in the tMap and an output flow based on fields from these tables?
TRF
Champion II
Champion II

It works as expected:

0683p000009Luji.png

Got 3 lines in main table ("aaaaa", "bbbbb", "ccccc") and 2 lines in the lookup ("AAAAA", "BBBBB").

The result contains 6 lines:

Starting job test at 20:01 29/05/2017.

[statistics] connecting to socket on port 4063
[statistics] connected
.-----+-----.
|tLogRow_35 |
|=----+----=|
|aaa  |bbb  |
|=----+----=|
|aaaaa|AAAAA|
|aaaaa|BBBBB|
|bbbb |AAAAA|
|bbbb |BBBBB|
|ccccc|AAAAA|
|ccccc|BBBBB|
'-----+-----'

[statistics] disconnected
Job test ended at 20:01 29/05/2017. [exit code=0]

Hope this helps.

 

TRF
Champion II
Champion II

@lorenzolucioni, does this helps you?
Lorenzo5
Creator
Creator
Author

Yes, thanks.