I have a following table:
id code bool1 bool2 bool3 bool4
1 A true true false true
2 B false true true true
Is it possible to get something like this?
id code bool
1 A name_for_bool1 // name of column bool1 e.g. 'worker'
1 A name_for_bool2
1 A name_for_bool4
2 A name_for_bool2
2 A name_for_bool3
2 A name_for_bool4
I would like to tell you what I've tried, but it has been completelly wrong - I have no idea how to do it..