here is my code for parse data but here I have error like this 'StoreSurvey' has fewer columns than were specified in the column list.'
what I have to do?
'''
WITH XMLNAMESPACES(
'http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/StoreSurvey'
AS XM)
SELECT SalesPersonID,
StoreSurvey.AnnualSales.value('(XM:AnnualSales)','INT') as AnnualSales,
StoreSurvey.AnnualRevenue.value('(XM:AnnualRevenue)','INT') as AnnualRevenue
FROM Sales.Store
CROSS APPLY Demographics.nodes('//XM:StoreSurvey') as
StoreSurvey(AnnualSales,AnnualRevenue)
'''