I'm having a hard time wrapping my head around pivot/unpivot - all examples I find online I think are more complex than I need.
Imagine a table as such:
CREATE TABLE Custom (ID tinyint identity, value nvarchar(20))
INSERT INTO Custom VALUES ('red')
INSERT INTO Custom VALUES ('green')
INSERT INTO Custom VALUES ('blue')
The table displays like
ID VALUE
1 red
2 green
3 blue
I want the table to display like
COLOR1 COLOR2 COLOR3
red green blue
Is this possible with UNPIVOT?
Thanks!