my google-fu is failing me. I'm trying to do the following in a more automatic way:
1) select a set of fields from 1 table
select ACCT_ID from MASTER_ACCT where CUST_NBR like '%ABC';
2) use the results of that in a multiple row insert
// for each ACCT_ID in (1)
insert into TOGGLES (FIELD1, FIELD2, FIELD3)
values('abc', '123', ACCT_ID[i]);
Is there a way to execute the 2nd statement for ACCT_ID[i] in each of the ACCT_ID results from the 1st statement?