oracle8.1.6 begin acs_group.del(:id); end; select NVL((select 'f' from dual where exists ( select 1 from acs_rels where object_id_one = :id and rel_type in ('composition_rel', 'membership_rel'))), 't') as is_empty from dual