oracle8.1.6 select acs_group.name(:group_id) as group_name, nvl(acs_rel_type.role_pretty_plural(t.role_two),'Elements') as role_pretty_plural from acs_rel_types t where t.rel_type = :rel_type