id date
1 30/12/1987
1 20/01/1988
1 15/02/2000
2 02/02/2014
2 15/02/2014
3 10/10/1988
the result should be
1 30/12/1987,20/01/1988,15/02/2000
2 02/02/2014,15/02/2014
3 10/10/1988
id date
1 30/12/1987
1 20/01/1988
1 15/02/2000
2 02/02/2014
2 15/02/2014
3 10/10/1988
the result should be
1 30/12/1987,20/01/1988,15/02/2000
2 02/02/2014,15/02/2014
3 10/10/1988
Like this
SELECT
id,
LISTAGG(date, ', ') WITHIN GROUP (ORDER BY id) "Dates"
FROM mytable
GROUP BY id
Easy way:
SELECT id, wm_concat(Date) as Dates
FROM tablename
GROUP BY id;