T
towser
Guest
Hi.
I have a lot of data in a table and I want to make a query to restructure the data as follows.
I have shown an example below of what I want to achieve.
I want to restructure the data in table 1 to get it in a new table in the structure shown in table 2.
Thanks
I have a lot of data in a table and I want to make a query to restructure the data as follows.
I have shown an example below of what I want to achieve.
I want to restructure the data in table 1 to get it in a new table in the structure shown in table 2.
Code:
[B]Example[/B]
Table 1
[B]ID label value[/B]
----------------------
1 type_a 25
1 type_b 35
1 type_c 45
2 type_a 15
2 type_b 46
2 type_c 56
Table 2
[B]ID type_a type_b type_c[/B]
---------------------------------
1 25 35 45
2 15 46 56
Thanks