postgresql7.1 select acs_object__name(:object_id) from dual select party_id, acs_object__name(party_id) as name from parties