I am trying to merge different rows into one when they have the same id but different column values.
(table1)
id colour
1 red
1 blue
2 green
2 red
I would like this to be combine so that the result is :
id colour1 colour2
1 red blue
2 green red
There is no limit for number of colors. It can range depending on the id.
Any help would be appreciated! Thanks in advance.