Declare your_variable varchar2(19); BEGIN FOR x IN (SELECT COORDINATEDVERSIONID FROM Mastertable where ISCURRENTVERSION = 0 order by coordinatedversionid asc) LOOP FOR y IN (DELETE FROM Childtable where coordinatedversionid = x.COORDINATEDVERSIONID order by coordinatedversionid asc DELETE FROM Mastertable where coordinatedversionid = x.COORDINATEDVERSIONID ) LOOP END LOOP; END LOOP; END;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)