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 with 2 resident tables

Hi everybody,

i need to create a resident table T3 from 2 resident tables T1 and T2:

T1:

LOAD FIELD1 resident t0a;

T2:

LOAD FIELD2 resident t0b;

with a left join because i want all the values of FIELD1 associated with the FIELD2:

so T3 msut have 3 fields and must be similar to follow :

FIELD1     FIELD2   FIELD3

A                                0

B               B               1

C               C               1

Field3 must satisfy the condition ----> IF( FIELD1=FIELD2,1,0)

but how can i build the correct script?

I kindly ask you a help!!

Thanks in advance

bye

2 Replies
fred_s
Partner - Creator III
Partner - Creator III

Hi,

I'd love to help you but I don't understand your question.
Could you attach your file?

Not applicable
Author

LEFT JOIN means that only the fields of T1 will be kept:

1)

LEFT JOIN (T1)

Field2 as Field1,

Field2

Resident T2

2)

T3:

Load Field1, Field2,

   if(Field1=Field2, 1, 0) as Flag

Resident T1

Fabrice