Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Sakura
Creator
Creator

Select * from table1 where table1.column in (select distinct values from table 2) How to do in Qlik?

Select * from table1 where table1.column in (select distinct values from table 2) How to do in Qlik?

Load * from table where table.col in (load distict column from table2)

How to perform the above operation?

Labels (2)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

Just like @Nicole-Smith mentions EXISTS is the keyword for solving this issue. Try something like this.

 

Table2:

Load  Column, Column 1, Column 2

From Table2.qvd (qvd); 

 

Table:

Load Col, Col1, Col2, Col3

FROM table.qvd (qvd) 

where exists(Column, Col );

View solution in original post

3 Replies
Nicole-Smith

You'll want to use the exists() script function.

You can read more about it and find some examples here: https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/InterRecordFunctions/E...

Vegar
MVP
MVP

Just like @Nicole-Smith mentions EXISTS is the keyword for solving this issue. Try something like this.

 

Table2:

Load  Column, Column 1, Column 2

From Table2.qvd (qvd); 

 

Table:

Load Col, Col1, Col2, Col3

FROM table.qvd (qvd) 

where exists(Column, Col );

Brett_Bleess
Former Employee
Former Employee

Sakura, did the above posts solve your issue?  If so, be sure to give them credit by clicking the Accespt as Solution button, you can check multiple replies if they helped as well.  If not, please provide further information, and if you cannot click the button, just leave a new reply confirming they did help, and we can mark things for you.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.