Example:
for rec in (query1) loop select * from query1; end loop;
In order not to write query1 twice and not to load the database, can I save the results of the query somewhere and then use them? Something like a cursor, but so that you can make a selection of it ...