I have a table of data like this:
RecID     Name      Value
1         Color     Red
2         Size      Small
3         Weight    20lbs
4         Shape     Square
I need a query that returns the rows as columns, like this:
Color     Size     Weight     Shape
Red       Small    20lbs      Square
What would the SQL query look like to do this? I cannot hard code any values into the query, it just needs to read the Name and Value pairs and re-orient them horizontally.
 
    