Hi Hemraj,
This is different for different databases, what database do you use?
Universal solution:
- Get Inner IDs via Set_List command (inner query you have)
- Run loop, that will unite all Set_List values into part of a query
- Run Set_List with outer query.
Here is a test case for you to understand how it works.
Regards,
Subject7 Team