Let's say I have a N:N table relationship, and i'm doing a join between them, the problem is that the result have many rows with the same values, and i want to resume in one row containing the ids of those.
The result that actually returned look like this.
ID_STREET STREET COUNTRY REGION
------------------------------------------------
1 street-1 country-1 region-1
2 street-1 country-1 region-1
3 street-2 country-2 region-2
and i want to get it as
ID_STREET STREET COUNTRY REGION DUPLICATED
---------------------------------------------------------------
1 street-1 country-1 region-1 1,2
3 street-2 country-2 region-2 3
Table definition look like
------------------------- --------------------------
STREET COUNTRY
------------------------- --------------------------
ID NUMBER NOT NULL ID NUMBER NOT NULL
NAME VARCHAR2(45) NOT NULL NAME VARCHAR2(45) NOT NULL
ID_COUNTRY NUMBER NOT NULL ID_REGION NUMBER NOT NULL
...other fields ...other fields
-------------------------
REGION
-------------------------
ID NUMBER NOT NULL
NAME VARCHAR2(45) NOT NULL
...other fields