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: 
deepakqlikview_123
Specialist
Specialist

Concatenate

If thwo tables having completely different structure(No field is comman).In this case qlikview will concatenate the two tables.

And why joining needs atleast one field is comman in between two tables.

Thanks,

Deepak

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

If none of the column is common in both the tables then also you can concatenate the tables like this

data:

LOAD

Field1

FROM DataSource1;

Concatenate(data)

LOAD

Field2

FROM DataSource2;

For DataSource1 data Field2 values are null and For DataSource2 data Field1 values are null.

For joining we need the key field in two tables, if not then the result table will be a cartesian product.., you will get more records ie., duplicate records.

Regards,

Jagan.

View solution in original post

4 Replies
sushil353
Master II
Master II

Hi Deepak,

You can concatenate any two tables using concatenate keyword..

If you want to join two table then there should be one field common in two table based on which it get joined other wise you will get a cross product of two tables.

HTH

Sushil

varunjain
Creator
Creator

Hi,

Because concatenate does not consider the common fields and simply append the second table below the first one.

Where as join is used when there is a relation between the two tables.

there fore if you have two tables with no column in common then there is no sense in JOINING them but even after that you dont want to view them as two differnet tables then it is best to conactenate them and view both the columns in a single table.

alexandros17
Partner - Champion III
Partner - Champion III

concatenate will put null values for fields belonging to ine table and not present in the other, join does not need a commom field, if so join computes all possible combination of fields (very slow)

Hope it helps

jagan
Luminary Alumni
Luminary Alumni

Hi,

If none of the column is common in both the tables then also you can concatenate the tables like this

data:

LOAD

Field1

FROM DataSource1;

Concatenate(data)

LOAD

Field2

FROM DataSource2;

For DataSource1 data Field2 values are null and For DataSource2 data Field1 values are null.

For joining we need the key field in two tables, if not then the result table will be a cartesian product.., you will get more records ie., duplicate records.

Regards,

Jagan.