xPath Error - ORA-31013
Hi,
I tried the following SQL statement in Oracle 9.2 :
SELECT mytable.myfield.extract('/E0/E02/*[ E23 = "C300"][E22 = max(//E22)][1]/E29/E31/text()') AS "myalias"
FROM mytable
but I receive the following error : ORA-31013: Invalid XPATH expression
It seems that max is not supported. Is it possible ? Is there a workaround ?
The XML data from myfield is here : http://www.experts-exchange.com/Database/Oracle/9.x/Q_23688573.html
TIA,
Phil