I have a table(dbo.Orders with 2 fields: Id (int) and OrderItem(xml).
XML in the OrderItem field:
<Placement> <Position /> <SeriesTotal>1</SeriesTotal> <Series>1</Series> <SectionId>193</SectionId> </Placement>
What I want is a SQL statement selecting Id and the value from the node.
SELECT Id,SectionId FROM dbo.Orders
Any ideas?