it's been some years since I used the Oracle SQL pivot function and I cannot quite get mine to work for this short example.
I would like to transform the multiple columns/ rows from this table
ID CLASS NAME WHEIGHT
1 2020 Tom 80
2 2020 Tim 100
3 2020 Ben 120
into this single result row:
CLASS LISTAGG_NAMES SUM_WHEIGHT
2020 Tom,Tim,Ben 300
Thank you very much for some help!