I'm just starting to learn mySql and am having trouble getting the table that I want.
I have a table that looks like this:
name | state | city
|----------------------------|
bob | fl | miami
bob | ca | san francisco
and I'm trying to make a table that takes the cities of Bob and turn it into two columns so it would look like this:
name | FL city | CA city
|--------------------------------------|
bob | miami | san francisco
how would I be able to do this? There are name ids from previous queries that I could use so bob for example is 1. (also this is my first time posting on stack so apologies for the terrible formatting) thanks in advance :)