Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> XMLAGG with analytic functions
Anybody else had issues with values from analytic functions
disappearing when wrapped in an XMLAGG function?
Apologies for the noddy example!
SQL> select *
2 from v$version;
BANNER
1* select xmlelement("TOTAL_EMP", count(*) over() ) FROM emp SQL> / XMLELEMENT("TOTAL_EMP",COUNT(*)OVER())
1* select xmlagg(xmlelement("TOTAL_EMP", count(*) over() ) ) FROM
emp
SQL> /
XMLAGG(XMLELEMENT("TOTAL_EMP",COUNT(*)OVER()))
![]() |
![]() |