Question : Query data then take that into an Array to do another select for data

I query a Route file, get my cList (cursor)
I want to take the cursor of cList and add all into an array
then take that array  do a select into the CUSTOMER Table
and pull all the customers that matche for each route in the list

Answer : Query data then take that into an Array to do another select for data

Do you mean,

SELECT * FROM Customers WHERE cmdrt1 IN (SELECT routeid FROM Routes WHERE mon=Y)
Random Solutions  
 
programming4us programming4us