Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
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;