Sorry if this has been asked before, but I was unable to find anything specific to this need, probably due to it being odd to phrase. Essentially I have a table like this that I would like to transform into the table below:
| zip | blue | green |
|---|---|---|
| 10000 | 1 | 2 |
| zip | color |
|---|---|
| 10000 | blue |
| 10000 | green |
Ideally, I would like to do this all purely in SQL or purely in Excel, but eventually I will want to transpose through R or Python once I get more familiar.
