I have a table like this one:
Dates Time Item1 Item2 Item3
1-Jan 0:00 Bread Bread Peach
1-Jan 6:00 Lemon Peach Peach
1-Jan 12:00 Lemon Bread Bread
1-Jan 18:00 Bread Lemon Peach
2-Jan 0:00 Bread Lemon Peach
2-Jan 6:00 Bread Lemon Peach
… … … … …
And I want to achieve this one:
Dates Times Item Food
1-Jan 0:00 Item1 Bread
1-Jan 0:00 Item2 Bread
1-Jan 0:00 Item3 Peach
1-Jan 6:00 Item1 Lemon
1-Jan 6:00 Item2 Peach
… … … …
I know how to unpivot one column, the problem is when I try to unpivot all of them at the same time, I do not know how to make the union properly