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

Announcements
Save an extra $150 Dec 1–7 with code CYBERWEEK - stackable with early bird savings: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Trouble with inner join using tmap

I am facing a case with inner join over two mssql tables name T1(main) and T2 (lookup). When T2 is having no data at all, the inner join reject works perfectly and goes to the reject output . But when T2 has some rows, say 40 and T1 is having 100 rows, all 100 rows are going in the main output and reject is being blank, instead of (40 main + 60 reject). So, it works as left outer join in case T2 has some data.

 

Has anyone faced the same issue and help me in resolving this?

Note: My main and reject output tables are same as the T2 table with different entries defined in the tmap. 

Labels (2)
13 Replies
manodwhb
Champion II
Champion II

@aporwal,can you show the tMap settings for Not working with data?

 

you need to look in two ways that tMap join column and are you have duplicate data on join key ? 

Anonymous
Not applicable
Author

Hi Manohar,

 

The join key is unique for each row and defined so in table schema.

Additionally, I have tried printing output with tlogrow instead of T2 table and it is behaving in the same way.

I have attached the tmap setting screenshot.

 

Ankur

manodwhb
Champion II
Champion II

@aporwal,i do not see tMap configuration where you attached screenshot.

Anonymous
Not applicable
Author

I attached in the original Post with other attachments.

Please check now.

manodwhb
Champion II
Champion II

@aporwal,which version of Talend,are you using?

Anonymous
Not applicable
Author

Version is 6.5.1.

manodwhb
Champion II
Champion II

@aporwal,i do not see any issue with Version is 6.5.1,it could be tMap configuration or data may be matching with main and lookup table.

so please check configuration of tMap  and data.

Anonymous
Not applicable
Author

Manohar, 

 

I have attached tmap screenshot, is there any problem in that, considering inner join and rejects?

When Main table is having 800 rows, and lookup has 154 rows, how can inner join show 800 rows in main output? It is questioning the basic definition of inner join.

Running the same query in sql server gives the correct 154 rows for inner join.

Do you see such problem with inner join in community edition in general? 

manodwhb
Champion II
Champion II

@aporwal,if you configured correctly that innerjoin, yes when you the problem with data you will get,so you need to check the data.