Is there an easy way to convert a matrix like table to just two columns, one with the record ID and one with a Category representing the old columns (not sure how to phrase it)?
I have:
id    foo   bar   baz
1     x
2           x
3                 x
4     x     x     x
I want:
id    category
1     foo
2     bar
3     baz
4     foo
4     bar
4     baz
The fourth row of the first tabe gets 3 rows in the new table since it has an 'x' for each column.
Please let me know if there is a better way to phrase this question or if this type of operation has name.
