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

Cannot Join Two Tables After a Concatenate

Hi

I'm trying to do a join after a concatenation of some tables, but I'm getting the following: (The tables are not concatenating).

borrarbd.png

I've uploaded a reduced qvw file.

Maybe the file will be useful for somebody, because I'm trying to do a qvw to  do a data dictionary from the sys tables of a sql server.

Thanks!!

OLEDB CONNECT TO [Initial Catalog=Database1;Data Source=192.168.4.XX;];

[Tablas]:

LOAD

  DBName&SchemaName&TableName as LlaveTablasColumna

  ,DBName

...

SQL

Select

.....;

Join (Tablas)

LOAD

  DBName&SchemaName&TableName as LlaveTablasColumna

  ,[TableRowCount]

...

SQL

Select ....;




OLEDB CONNECT TO [Initial Catalog=Database2;Data Source=192.168.4.XX;];

[Tablas]:

LOAD

  DBName&SchemaName&TableName as LlaveTablasColumna

  ,DBName

...

SQL

Select

.....;

/*********** This Join is Not Working ******************/


Join (Tablas)

LOAD

  DBName&SchemaName&TableName as LlaveTablasColumna

  ,[TableRowCount]

...

SQL

Select ....;

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

HI,

What you should do is first join the tables and then do the concatenate, something like below.

Table:

Load Key,* from Table1;

Left join(Table)

Load Key,* from Table2;

Temp:

Load Key,* From Table3;

Left(Temp)

Load Key,* from Table4;

Concatenate(Table)

Load * resident Temp;

Drop table Temp;

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

1 Reply
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

HI,

What you should do is first join the tables and then do the concatenate, something like below.

Table:

Load Key,* from Table1;

Left join(Table)

Load Key,* from Table2;

Temp:

Load Key,* From Table3;

Left(Temp)

Load Key,* from Table4;

Concatenate(Table)

Load * resident Temp;

Drop table Temp;

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!