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