Distinct LISTAGG that is inside a subquery in the SELECT list
问题 Here is a minimal working example of what I'm trying to do and what I'm getting: I have a query as follows: /* with tran_party as -- ALL DUMMY DATA ARE IN THESE CTE FOR YOUR REFERENCE (select 1 tran_party_id, 11 transaction_id, 101 team_id_redirect from dual union all select 2, 11, 101 from dual union all select 3, 11, 102 from dual union all select 4, 12, 103 from dual union all select 5, 12, 103 from dual union all select 6, 12, 104 from dual union all select 7, 13, 104 from dual union all