how to generate a list of distinct scalar values from a column which type is array - Mailing list pgsql-sql

From Sergio Andreozzi
Subject how to generate a list of distinct scalar values from a column which type is array
Date
Msg-id 2cfc7c940702211021u1ba47031l25112a69cfb18338@mail.gmail.com
Whole thread Raw
Responses Re: how to generate a list of distinct scalar values from a column which type is array  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Re: how to generate a list of distinct scalar values from a column which type is array  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-sql
Dear all, <br /><br />given a column which type is for instance varchar(20)[], is there any SQL command that let me
generatethe list of distinct scalar values? <br /><br /><br />e.g.: <br />             col1<br />row 1: (aaa, bb, c)
<br/>row 2: (dddd, eeee) <br />row 3: (aaa, eeee) <br /><br />the query should return: <br /><br />aaa <br />bb <br />c
<br/>dddd <br />eeee <br /><br />if not, I guess the approach is to use stored procedure. Any code
snippet/suggestion?<br/><br />Thanks, Sergio <br /><br /> 

pgsql-sql by date:

Previous
From: "devil live"
Date:
Subject: Re: Problem with Temp Table and Result Set from PL Function...
Next
From: Martin Marques
Date:
Subject: Problems with temp table and PL