Avoid Cursors inside a loop (PL/SQL Oracle) | CAST Appmarq