Med postgres 9.0+ kan du skrive: select string_agg(product,' | ' order by product) from "tblproducts" Detaljer her.