TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kumar AU
1.1k
309
61.9k
How to Update XML tags value with new values in SQL Script
Oct 2 2020 7:31 AM
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
Reply
Answers (
3
)
Msg 102, Level 15, State 1, Line 22 Incorrect syntax near 'order'.
SQL Query that return a duplicate record