This is my XML in one of the column in the XYZ Table, here i Need to update Amount tag with new value instead of 0.00 and then PolicyReference and AccountReference I need to update two diffrent values in these tags instead of Blank .
For example:- <PolicyReference>7657576567</PolicyReference>
<AccountReference>7657576875</AccountReference>
This is my XML document
- <document>
- <StatusCode>ACV</StatusCode>
- <PaymentMethodDetail>
- <EFT>
- <AccountNumber>123456789</AccountNumber>
- <AccountName>ABCDEFGHIJK</AccountName>
- </EFT>
- </PaymentMethodDetail>
- <PaymentExtendedData>
- <CHECK>
- <Source>System</Source>
- <SourceType>ACH</SourceType>
- </CHECK>
- </PaymentExtendedData>
- <PostMarkDate />
- <EntryUserId>1</EntryUserId>
- <Amount>0.00</Amount>
- <EntryDate />
- <PolicyLineOfBusiness>LOL</PolicyLineOfBusiness>
- </PolicyReference>
- </AccountReference>
- <AccountId>2034001793</AccountId>
- </document>
Could you please let me now How do I achive this in SQL query