I
I
iscateli2022-03-04 11:15:46
Oracle
iscateli, 2022-03-04 11:15:46

How to create columns in pivot xml?

Please tell me how to create columns, because in the expression

... pivot xml ( count(field1) for field1 on ( тут любой запрос возвращает xml)

There is a return of xml, I tried to pull out the values ​​from there through extractvalue, but in the pivot it still returns xml, although if you run the query separately, then just a regular set of rows. In general, please show a working example of how to build columns from pivot xml.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question