Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anady
Contributor
Contributor

Left join not giving the desired output.

Hi,

I am trying to execute the below script in the QS Data Load Editor. 

Anady_0-1673966834717.png

 

 

 

 

 

 

 

 

 

 

 

 

I am getting the output as below, which is not what I am expecting.

 

Anady_1-1673967091905.png

Can anyone please help?

 

 

 

 

Labels (2)
1 Solution

Accepted Solutions
hesh
Partner Ambassador
Partner Ambassador

@Anady  - what is the output that you are expecting?

In your script as seen from the screenshot attached the first two values i.e. A and B are being taken as column names. The rest of the values are then being considered in the Left Join and the output as displayed in the second screenshot is correct.

You may want to take a look at the below for clarity: 

Understanding Join Keep and Concatenate. 

 

"LEFT JOIN , also called LEFT OUTER JOIN , returns all records from the left (first) table and the matched records from the right (second) table."

 

 

so, from the script that you have attached as screenshots the output is perfectly fine.

View solution in original post

3 Replies
marcus_sommer

What is your expectation?

hesh
Partner Ambassador
Partner Ambassador

@Anady  - what is the output that you are expecting?

In your script as seen from the screenshot attached the first two values i.e. A and B are being taken as column names. The rest of the values are then being considered in the Left Join and the output as displayed in the second screenshot is correct.

You may want to take a look at the below for clarity: 

Understanding Join Keep and Concatenate. 

 

"LEFT JOIN , also called LEFT OUTER JOIN , returns all records from the left (first) table and the matched records from the right (second) table."

 

 

so, from the script that you have attached as screenshots the output is perfectly fine.

Anady
Contributor
Contributor
Author

@hesh  - Thank you!