I have a table that has 3 columns: ID, Type, and Value.
I'm looking for a way to rearrange/view the data in a matrix form where ID is the first index and Type is the second index, and Value is the value for that ID/Type.
i.e., I have:
ID Type Value
--------------
ID1 Type1 x
ID2 Type1 y
ID1 Type2 z
ID2 Type2 v
and I want to see it as:
Type1 Type2
--------------------
ID1 | x z
ID2 | y v
How would I write a query to do this? Or is it even possible?
Thanks much!
I'm looking for a way to rearrange/view the data in a matrix form where ID is the first index and Type is the second index, and Value is the value for that ID/Type.
i.e., I have:
ID Type Value
--------------
ID1 Type1 x
ID2 Type1 y
ID1 Type2 z
ID2 Type2 v
and I want to see it as:
Type1 Type2
--------------------
ID1 | x z
ID2 | y v
How would I write a query to do this? Or is it even possible?
Thanks much!