Thank you.
I think there is no native function that will solve this problem, intarray extension can't order as in the example query.
I could write a new SQL function but I solved the problem with subqueries and works fine.
I need order because I use nested trees.
To_left and to_right are the coordinates for each node and the result must be ordered by this to obtain the correct result. ------ Original Message ------
From: "Geoff Winkless" <pgsqladmin@xxxxxxxx>
To: "Sterpu Victor" <victor@xxxxxxxx>
Cc: "PostgreSQL General" <pgsql-general@xxxxxxxxxxxxxx>
Sent: 11/29/2015 10:51:32 PM
Subject: Re: Re[2]: DISTINCT in STRING_AGG
DISCLAIMER: |