Answers for "postgresql keep distinct value in array"

SQL
2

postgresql make each element in array distinct

SELECT ARRAY(SELECT DISTINCT unnest(t_column)) FROM t_name;
Posted by: Guest on March-20-2021
0

array aggre distinct postgres

SELECT ARRAY(SELECT DISTINCT e FROM unnest(ARRAY[a,b,c,d]) AS a(e))
FROM ( VALUES
  ('foo', 'bar', 'foo', 'baz' )
) AS t(a,b,c,d);
Posted by: Guest on February-27-2020

Code answers related to "postgresql keep distinct value in array"

Code answers related to "SQL"

Browse Popular Code Answers by Language