Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
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;