Casting In XML--Char to Number [message #409760] |
Tue, 23 June 2009 22:25 |
pkumar_2008
Messages: 19 Registered: November 2008 Location: usa
|
Junior Member |
|
|
Hi All,
I have an xmltype column in a table and amount value is stored as string .I am trying to get the aggregate amount but getting an error.
ORA-01722: invalid number
ORA-06512: at "SYS.XMLTYPE", line 168
SQl Query AS follows
SELECT
INSTRUCTIONTEMPLATEKEY,
TRANSACTIONTEMPLATEID,
EXTRACT(DETAILS,'/Trn/InstdAmt','xmlns="com.clear2pay.bph"').GETNUMBERVAL() AS INSTDCDTAMT
FROM
TRANSACTIONTEMPLATE
Actual values in amount Element in XML
2,860.00
435.00
5,931.00
...Please,help me...this is very very urgent...
Thanks In advance
Kumar
|
|
|
|
|