Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Moving values from single column to separate columns

Hi,

 

I have a table that looks like:

Key             X                       Y

100            10:00                  10

100            11:00                  15

100            12:00                  13

.

.

.

101            10:00                    99

101            11:00                    56

101            12:00                    74

.

.

.

102            10:00                    20

102            11:00                    40

102            12:00                    60

.

.

.

 

 

How do I change the structure of the table to look like:

 

X              Y_100            Y_101          Y_102

10:00        10                99                 20

11:00        15                56                 40

12:00        13                74                 60

.

.

.