Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Left join with two key fields

Hi,

Can anyone explain how Qlikview performs left join of two tables when they share two fieldnames in common?

Many thanks,

Murali

1 Solution

Accepted Solutions
vincent_ardiet
Specialist
Specialist

Hi,

It works like in SQL.

The two columns must have the same value to perform the join.

Regards,

Vincent

View solution in original post

4 Replies
vincent_ardiet
Specialist
Specialist

Hi,

It works like in SQL.

The two columns must have the same value to perform the join.

Regards,

Vincent

Not applicable
Author

Hi Vincent,

                  Will this work for all other types of join?

vincent_ardiet
Specialist
Specialist

Hi Kiran2in,

What do you mean ? Inner join, right outer join and full outer join ?

Here are some details:

- Using the key word JOIN in QV is the same as FULL OUTER JOIN in SQL ;

- LEFT JOIN in QV is the same as LEFT OUTER JOIN in SQL ;

- RIGHT JOIN in QV is the same as RIGHT OUTER JOIN in SQL ;

- INNER JOIN in QV is the same as INNER JOIN in SQL ;

So, the big difference is that, in QV, default joins are FULL OUTER JOIN, but, in SQL, default joins are INNER JOIN.

Then, in SQL you can specify on which columns you want to join either from the right table, either from the left table. But QV automaticaly joins columns with the same name and like in SQL, the combination of all values from those columns have to be the same in the left table and in the right table to perform the join (whatever type of join you choose).

Regards,

Vincent

Not applicable
Author

Hi Vincent,

Thanks for clarification.