You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

Hello Friends,
I am using Tjoin component to make inner join between 2 tables. But When it runs, Tjoin component protects the datas which are coming from the main table and joins with the lookup table's key attribute's last row.
For Example,
A Table B Table
A1 Column B1 Column, B2 Column
---------- -------------- ------------
1 1 01
2 1 02
3 2 01
2 03
3 04
3 05
The result which Tjoin generates is the below:
x y z
1 1 02
2 2 03
3 3 05
But I want it to make inner join like the following:
x y z
1 1 01
1 1 02
2 2 01
2 2 03
3 3 04
3 3 05
How can I achive to do this and by which component?
and My Job's screenshot has been attached so it can provide deeper informaation about the problem. Thanks in advance.
Last edited by cinar (2011-11-14 15:35:08)
Offline

Hi Cinar
is it not possible to do this straight in your query?
SELECT a.A1 FROM TableA a INNER JOIN TABLEB b on a.A1 = b.B1 GROUP BY b.B1, b.B2
Regards
Brandon
Offline

cinar,
In your tmap have you changed the match model to join on all matches?
Regards
Brandon
Last edited by brandon_stubbs93 (2011-11-14 15:46:39)
Offline

Hi brandon_stubbs93 & Or3l,
No, I didnt change the join model As I didnt know whether such a thing exists or not:) I will try this and write the result back here.. Thanks for your helps.
Offline

Wowww, That worked!!! I'm so happy really like a child. I have tried to fix this problem whole day long. Thank you guys:)
ismail.cinar@obase.com You guys can write me whenever you want...
Thanks again.
Offline
I have question to Bradon_Stubs93 .
I have two csvs and have more than 500,000 records.I have to do inner join if I do all matches Its not able to write csv because it creates too many duplicates in it ...
Is any body can help me how to get all records and no duplicate ...I really need this done Otherwise I'll be in trouble.Thanks for you help
Offline

Hi simGill
Surely the match model for that situation would be Unique match and the Join Model Inner join in your tMap?
Regards,
Brandon
Offline
Pages: 1