Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have list of shipment id in a qvd. How I will use these id in for loop to run another sql query sql Script.
Example;
Shipment id
91064
94353
98477
98478
98479
98480
98481
98482
98483
98528
98564
98565
SQL select col1,col2 from table1 where Shipemetid = ? (Output should based on all shipment id in qvd)
Here I can't use IN operator . Please help on above requirements.
Thanks,
Deb
If there are not too many ID's you could use IN(), for example with:
ShipmentID: load concat(ID, ',') as ID from ShipmentID;
let vShipmentID = peek('ShipmentID', 0, 'ShipmentID');
SQL select * from Source where ShipmentID IN($(vShipmentID));
- Marcus
Thanks Marcus,
But In my scenario I can't use IN() as per client requirement.
What speaks against an in() where-clause? If it's not a problem to pull the whole table you could do that and filter then the data within Qlik per exists(). Otherwise it would be helpful you give a bit more background to your question.
- Marcus