如图 假如表中存在前四行数据,将要合并成两行数据,并且将不同值的 组成新的列来显示数据。该如何实现。
select id ,listagg( name, ',' ) within group ( order by id ) as namefrom TABLE_NAMEGROUP BY id;