LISTAGG पर एक नज़र डालें
http://www.oracle-base.com/articles/misc/StringAggregationTechniques.php
कुछ इस तरह:
SELECT NAME, LISTAGG(CAR, ',') WITHIN GROUP (ORDER BY CAR) AS CARS
FROM (SELECT NAME,CAR
FROM TABLE1, TABLE2
where TABLE1.IdN=TABLE2.IdC)
GROUP BY NAME;