Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XMLAGG

Eric999Oct 8 2019 — edited Oct 8 2019

Can you use WITHIN GROUP in XMLAGG? I'd like to convert the LISTAGG statement below to use XMLAGG.

LISTAGG(purchase_order,',')

    WITHIN GROUP (ORDER BY sales_date, customer_name) OVER (PARTITION BY sales_date, customer_name) AS purchaseorders,

This post has been answered by mathguy on Oct 8 2019
Jump to Answer
Comments
Post Details
Added on Oct 8 2019
4 comments
1,290 views