Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

If I load two tables I.e having one same column then by default which join will be applied ?

Test:

LOAD A,

    B

FROM

<Path>

Test 1:

LOAD

A,

C,

D

FROM

<Path>

9 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Your script will create two tables with an association on FieldA. This is similar in effect to a full outer join

If you want to do a join, then use this to create a single table:

JOIN LOAD

A,

C,

D

FROM

<Path>

The default JOIN is a also full outer join. You can override this with LEFT, RIGHT and INNER.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
sunny_talwar

Unless you specify Join, these will be kept as two separate tables with data from both tables (acting like a full outer join)

jagan
Luminary Alumni
Luminary Alumni

Hi,

If you do not specify any Join both the tables cannot be combined into one (two separate tables), but there will be join/relation between the tables, there is Full Outer Join between these two tables.

Regards,

jagan.

brijeshvma
Partner - Creator
Partner - Creator

Hi,

If u are not mentioning join between two table . it will keep seperate table and create synthetic key and if no of column are same and same name than automatic it will be full outer join.

Not applicable
Author

Hi Sunny,

I have 853 records in Test table and 853 records in Test1 table as well . But with this code whenever I am plotting column A into the front end then row count is 854. Can you please tell me the reason behind this?

engishfaque
Specialist III
Specialist III

Dear Kapil,

QlikView does not perform any join by default.

If your two tables have one column (field) name same, then there will be Association between two tables by default.

If your two tables or more have more than one column (field) names same then there will be synthetic key created autometically then you need to create link table to remove synthetic key or you need to rename field names as the synthetic key can be removed.

However, if you would like to use join between tables then you need to use Left Join, Right Join, Inner Join and Outer Join.

Please go through and get clear understanding from listed below link,

Understanding Join, Keep and Concatenate

Kind regards,

Ishfaque Ahmed

jonathandienst
Partner - Champion III
Partner - Champion III

Kapil Verma wrote:

I have 853 records in Test table and 853 records in Test1 table as well . But with this code whenever I am plotting column A into the front end then row count is 854. Can you please tell me the reason behind this?

Because there is one value in Test that does not exist in Test1 and/or one value in Test1 that does not exist in Test. That means there are 854 distinct values of A. That's what is meant by a full outer join.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Thanks jonathan..

Not applicable
Author

Yes,If you are not mentioning type of join then there wont be any join in qlik view but if the fields are same in different tables then there will be association.using only join will make full-outer join But, according to your requirement you can use Left Join ,Right Join,Inner Join .

Regards,

Anil