Hi all,Please help me in writing a query to fetch the values in xml into rows...declare @text xmldeclare @DocHandle Int select @text = '<Root> <UnsendItems UserId="82345" > <Items ItemCode="ABCI" ItemId="458963,859632" /> <Items ItemCode="RRCH" ItemId="963147,563142" /> <Items ItemCode="TTQW" ItemId="563289,555631" /> </UnsendItems></Root>'
I expect the result in the following format...UserId ItemCode ItemId-----------------------------------------82345 ABCI 458963,85963282345 RRCH 963147,56314282345 TTQW 563289,555631
thanks...