Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Ethel
Creator III
Creator III

right join is not working in data loader

Hello,

could you please help me to figure out what I'm doing wrong?

F1:
Load 
AccountDescriptionType
,TransactionLineItem
, TransactionType
Resident T1;
 
right join
Load 
     AccountDescriptionType
     ,FY2013
   ,TransactionLineItem
  , TransactionType
Resident T2;
 
 
drop table T1;
drop table T2;
 
T1 table has 100 rows, T2 has 3 rows. Why my final F1 table has only 3 rows? It should have 100 rows.
Thank you very much in advance! 

 

Labels (5)
2 Solutions

Accepted Solutions
PrashantSangle

T1 table has 100 rows, T2 has 3 rows. Why my final F1 table has only 3 rows? It should have 100 rows.
Thank you very much in advance! 
 
> Because you are doing right join.
 
If you want all 100 records then do Left join.
 
Regards,
Prashant Sangle
Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

Ahidhar
Creator III
Creator III

that is how right join works it gives preference to the table loaded after join in this case the table taken from T2.

so of the 100 rows in First table only the 3 rows that match with Second table will be considered

Below link explains the difference between different joins 

https://help.qlik.com/en-US/sense/August2023/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefix...

View solution in original post

4 Replies
PrashantSangle

T1 table has 100 rows, T2 has 3 rows. Why my final F1 table has only 3 rows? It should have 100 rows.
Thank you very much in advance! 
 
> Because you are doing right join.
 
If you want all 100 records then do Left join.
 
Regards,
Prashant Sangle
Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Ahidhar
Creator III
Creator III

that is how right join works it gives preference to the table loaded after join in this case the table taken from T2.

so of the 100 rows in First table only the 3 rows that match with Second table will be considered

Below link explains the difference between different joins 

https://help.qlik.com/en-US/sense/August2023/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefix...

Ethel
Creator III
Creator III
Author

Thank you very much!

Ethel
Creator III
Creator III
Author

Thank you very much!