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
Anonymous
Not applicable
Author

Same query working with SSMS well, seems to me as no problem with data.

Could you suggest anything else to check?

ThWabi
Creator II
Creator II

Hello aporwal,

 

in your tMap component on the output side, move the inner join reject output "out3" to the top so that it is "order:1" of the outputs.

 

Best regards,

 

Thomas

 

manodwhb
Champion II
Champion II

@ThWabi, how the order of tMap output sections will make differences?

ThWabi
Creator II
Creator II

Hi Manohar,

 

as far as I can see from the tMap screenshot, the outputs do not have any data from the lookup. So I thought it might make a difference whether the reject output is processed first or second. My apologies if this is wrong.

 

Best regards,

 

Thomas