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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

loop through a table and load another by ID

Hi all,

could be that I have forgitten everything, but I am stuck with that Problem:

I Load a "Header" Table form the Database. In that table there is a ID wich is FK in an other table with details.

I cant load the whole detail table because thats too many records.

So I want to LOOP throgh the header Table and select all detail records for every ID.

In exaple:


Header:
LOAD ID;
Select ID from header_table;

for each ID in Header
Detail:
LOAD <All Fields>;
Select * from Detail_table where FK_ID = ID;
LOOP;


Thanks in advance

Alex

0 Replies