Using SQL to transpose/flatten XML structure to columns
I am using SQL Server (2008/2012) and I know there are similar answers from lots of searching, however I can't seem to find the appropriate example/pointers for my case. I have an XML column in a SQL Server table holding this data: <Items> <Item> <FormItem> <Text>FirstName</Text> <Value>My First Name</Value> </FormItem> <FormItem> <Text>LastName</Text> <Value>My Last Name</Value> </FormItem> <FormItem> <Text>Age</Text> <Value>39</Value> </FormItem> </Item> <Item> <FormItem> <Text>FirstName</Text> <Value>My First Name 2</Value> </FormItem> <FormItem> <Text>LastName</Text> <Value>My Last Name 2<