//通过年龄分组,姓名合并(时间排序)
SELECT
listagg(t.name, ',') within group(ORDER BY t.time) name
from table t
group by t.age order by max(t.time)
//通过年龄分组,姓名合并(时间排序)
SELECT
listagg(t.name, ',') within group(ORDER BY t.time) name
from table t
group by t.age order by max(t.time)