how to solve parse error?

  • 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)

    '''

  • Thanks for posting your issue and hopefully someone will answer soon.

    This is an automated bump to increase visibility of your question.

  • This was removed by the editor as SPAM

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply