Removing repeated letters in a set of rows on PostgreSQL 8.3
问题 I have a query that returns a set of rows with a combination of the letters A , E , I and L . That combination are Portuguese mneumonics for Alterar , Excluir , Incluir , and Listar . The column value can vary between A , AE , AEL , AELI ... L , LI , LIA , LIAE . In the example illustrated below I would like to be able to get a unique string with all repeated letters removed. So the result would be AELI , a merge of all rows. My first attempt was using the combination of the functions array