I have a table like this:
Datetime | Milan | London |
---|---|---|
YY/MM/DD | 302 | 267 |
YY/MM/DD | 54 | 108 |
and I'm trying to alter the table to have the column names as values in a column named "city" and the values in the cities column in a new column named "wind_direction"
Datetime | City | wind _direction |
---|---|---|
YY/MM/DD | Milan | 302 |
YY/MM/DD | Milan | 54 |
YY/MM/DD | London | 267 |
YY/MM/DD | London | 108 |
I tried looking in ALTER TABLE syntax but nothing helped me