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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sdtfll
Contributor III
Contributor III

how SQL condition "WHERE x in" from Qlik table?

I'm new to here, thanks advanced for your help,

 

Table1:

load * in line [

ID

1

2

3

];

 

I want to fetch records base on ID above, how to quote the IDs above in SQL?

 

Table2:

load ID, name, age, addr, salary 

SQL SELECT ID, name, age, addr FROM PERSON WHERE ID in [?? how? load Table1 ??];

 

Labels (1)
1 Solution

Accepted Solutions
jwjackso
Specialist III
Specialist III

Use the Exists()  functions

Table2:

load ID, name, age, addr, salary

where Exists(ID);

SQL Select ID, name, age, addr FROM PERSON;

 

View solution in original post

1 Reply
jwjackso
Specialist III
Specialist III

Use the Exists()  functions

Table2:

load ID, name, age, addr, salary

where Exists(ID);

SQL Select ID, name, age, addr FROM PERSON;