Hello,You can create a SQL activity and add:
BEGIN
FOR c IN
(
select table_name
from all_tables
inner join bradapps.nmsgroup tmp
on instr(table_name,to_char(tmp.igroupid)) > 0
where table_name like 'GRP%'
and trunc(sysdate) - trunc(tmp.tscreated) > 31
and trunc(sysdate) - trunc(tmp.tslastmodified)...