Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Mastering Change Data Capture: Read Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Tenuki
Contributor III
Contributor III

Inner Join Do not work

I am trying to join two tables, but get an error :

 

Table_A :

LOAD ProductID, ProductCat, ProductName

FROM [ProductTable.qvd](qvd);

 

Table_B:

LOAD OrderID, DetailOrderID, ProductID, Amount

FROM [OrderDetail.qvd](qvd);

INNER JOIN

LOAD * FROM Table_A


When I load this, I got "Table_A" not found.

Labels (1)
1 Solution

Accepted Solutions
TheLazyDeveloper
Contributor III
Contributor III

Table_A could be auto concatenating if you're using the same fields in another table or you're not doing a resident load of Table_A.



Table_A :

LOAD ProductID, ProductCat, ProductName

FROM [ProductTable.qvd](qvd);

 

Table_B:

LOAD OrderID, DetailOrderID, ProductID, Amount

FROM [OrderDetail.qvd](qvd);

INNER JOIN(Table_B)

LOAD * RESIDENT Table_A;

View solution in original post

4 Replies
TheLazyDeveloper
Contributor III
Contributor III

Table_A could be auto concatenating if you're using the same fields in another table or you're not doing a resident load of Table_A.



Table_A :

LOAD ProductID, ProductCat, ProductName

FROM [ProductTable.qvd](qvd);

 

Table_B:

LOAD OrderID, DetailOrderID, ProductID, Amount

FROM [OrderDetail.qvd](qvd);

INNER JOIN(Table_B)

LOAD * RESIDENT Table_A;

anat
Master
Master

why can't you join 2 tables directly without using resident

Table_A :

LOAD ProductID, ProductCat, ProductName FROM [ProductTable.qvd](qvd);

inner join(Table_A )

Table_B:

LOAD OrderID, DetailOrderID, ProductID, Amount FROM [OrderDetail.qvd](qvd);

 

 

or if you want to keep Table_A  as is and get the common records from Table_B use below logic:

Table_A :

LOAD ProductID, ProductCat, ProductName FROM [ProductTable.qvd](qvd);

noconcatenate

Table_B:

LOAD OrderID, DetailOrderID, ProductID, Amount FROM [OrderDetail.qvd](qvd);

INNER JOIN(Table_B)

LOAD * RESIDENT Table_A;

Tenuki
Contributor III
Contributor III
Author

Hello, many thanks, I didn't have the right synthax.

Tenuki
Contributor III
Contributor III
Author

Thanks, I have managed to do it.