SyntaxFix
Write A Post
Hire A Developer
Questions
SELECT cast(xmlField as xml).value('(/person//firstName/node())[1]', 'nvarchar(max)') as FirstName, cast(xmlField as xml).value('(/person//lastName/node())[1]', 'nvarchar(max)') as LastName FROM [myTable]