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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
louisernould
Contributor III
Contributor III

condition Where crossing 2 tables

Hi the Qlik Community, 

 

I've got a problem about the Where Condition, but I don't know if Qlik is capable to do what I want...

 

In my script, I want to select in a where condition, only the dimensions existing in a different table (I loaded it just before). I want it because one of the table is really huge (50 milions of lines), so it's too long to load it.

So, I cannot load the first table, then the second one, then join then.

My 2 tables come from a server.

 

I want to do this : 

Table A :

Load reference,
          reference as Ref,
          supplier
from ....
where supplier = 123;

 

left join (Table A)
LOAD reference,
             sales
FROM ....
where reference exist in (Ref);

 

If anyone could help, or if it's not possible, let me know 🙂 

thanks !

 

Louis

 

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

Try this

Table A :
LOAD reference,
           reference as Ref,
           supplier
FROM....
Where supplier = 123;

Left Join (Table A)
LOAD reference,
             sales
FROM ....
Where Exists(reference);

View solution in original post

7 Replies
sunny_talwar

Try this

Table A :
LOAD reference,
           reference as Ref,
           supplier
FROM....
Where supplier = 123;

Left Join (Table A)
LOAD reference,
             sales
FROM ....
Where Exists(reference);
louisernould
Contributor III
Contributor III
Author

Hi Sunny, 

It works, thank you !!! 🙂

 

somacdc
Contributor III
Contributor III

and how to store above tables result into qvd?

sunny_talwar

By using Store statement

Store A into A.qvd (qvd);

somacdc
Contributor III
Contributor III

By using following store statement, before left join statement data is stored. But I want to store the whole result.

Table A : LOAD reference, reference as Ref, supplier FROM.... Where supplier = 123; Left Join (Table A) LOAD reference, sales FROM .... Where Exists(reference);
Store Table A into A.qvd (qvd);

 

sunny_talwar

Can you share an example of this script with some data?

somacdc
Contributor III
Contributor III

Thanks for your kind response. i resolved myself