Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

join


hello all,

       i need to join the below tables such that transdate of 1st table matches transdate of 2nd,MID of 1st table matches 2nd,tid of 1st table matches 2nd uploaddate of 1st table matches with 2nd.

snap1.png

snap2.png

13 Replies
SunilChauhan
Champion II
Champion II

i thing you should simply use

Inner join between them

Load

from firsttable

inner join

load from seond table

hope this helps


Sunil Chauhan
SunilChauhan
Champion II
Champion II


on emor thing you can do

Tab1:

Load  *,

Transdate&Mid&Tid&Uploaddate as key

from table1

Tab2;

Load

*

from

where FlnalStatus<>'Close' and exist(key,Transdate&Mid&Tid&Uploaddate);

Drop table Tab1;

try implementing logic on this

hope this helps

Sunil Chauhan
Not applicable
Author

Hi,

If you want join this tables by using three common fields means. Should create composite Key. Otherwise qlikview will create the synthetic keys.

  

CCfirstcutmaster:

Load

TranDate &'-' & MID &'-' & TID &'-' & UPLOADDATE as CompKey,

Remaining fieldnames

from CCfirstcutmaster.qvd;

Load

TranDate &'-' & MID &'-' & TID &'-' & UPLOADDATE as CompKey,

Remaining fieldnames

from Transaction.qvd;

in this scenario this two table will join based on CompKey

Hope this will help you...

Not applicable
Author

Rajasekhar Reddy Mk: I disagree with your previous reply. You can without problems, join 2 tabes based on 3 key-fields without making a composite key. Note, it is not wrong to make a composite key, but also it is not required: when there are 3 key fields,Qlikview will join based on these 3 fields. And because you performe a join, there will not be a synthetic key or table because the join combines these 2 tables into 1.