Thread: How to Return Unique Elements From An Array?

How to Return Unique Elements From An Array?

From
Bhuvan A
Date:
hello all,

how can we get unique elements from an array(of any type)?

Regards,
Bhuvaneswar.



Re: How to Return Unique Elements From An Array?

From
Haller Christoph
Date:
Have you tried already 
SELECT DISTINCT <your_array> FROM <your_table> ; 
If you receive an error message like 
Unable to identify an ordering operator ... 
Refer to 'Server Programming' section Extending SQL: Operators 
to learn about creating your own operators for array comparison 
Or search the mailing-list for similar requests. 
Regards, Christoph 
> 
> hello all,
> 
> how can we get unique elements from an array(of any type)?
> 
> Regards,
> Bhuvaneswar.