Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

left join Substitute

Is there  is any substitute of left join for the table having more than one fields

17 Replies
ashfaq_haseeb
Champion III
Champion III

you can create composite key

Regards

ASHFAQ

MayilVahanan

Hi

Create a composite key if you have more than one common field between 2 tables.

Like

PID1 &'-'&PID2 as %Key

If the key fields is large length, then use Autonumber function for create the Key fields.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

then?

ashfaq_haseeb
Champion III
Champion III

Create the same key in both tables and join them

Regards

ASHFAQ

Not applicable
Author

it will change the out put

see the attachment ,it will give different output if i used left join and if i used company key

ashfaq_haseeb
Champion III
Champion III

Hi,

Check this

Regards

ASHFAQ

ashfaq_haseeb
Champion III
Champion III

Hi use this

T1:

LOAD ID &'-'& NAME as key,

SECTION,

NAME

;

LOAD * Inline [

ID,NAME, SECTION

1,anu,D

2,ankita,B

3,ekta,A

4,Shweta,C

];

left join

T2:

load ID &'-'& NAME as key,

%

;

LOAD * Inline [

ID ,NAME,%

3,shialy,00

4,shruti,01

5,kirt,8

6,Stuti,.5

3,ekta,90

];

Regards

ASHFAQ

Not applicable
Author

That's I know but I dnt want to use left join

As use of it increase the execution time in my original Qvw file

ashfaq_haseeb
Champion III
Champion III

Then use apply map instead.

Regards

ASHFAQ