Please give the solution for the below scenario:
1. I have omitted 10 records in Table 1 and now it is showing only 10 records
2. Need to fetch related records from 'Table 2' for those 10 records using scripts
3. Finally, it has to be exported at a single shot.
Kindly advise on this.