sql - xml agg subquery in select statement taking long time to return data in oracle 12c? -


select  ( select substr(rtrim(xmlagg(xmlelement(e,                a2.action || ','||a2."date"|| ',' || a2."group",';')                    order a2.counter).extract ('//text()').getclobval(), ','),1,4000)           test3 a2           a2.unique_key = c1."number" group c1."number"         ) test_data test1 c1  left outer join test2 c2 on c1."number" = c2."number"  ; 


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -