I am trying to convert my resultant rows in to columns, but only with the bit values. To explain better what I mean, my table looks like this;
Id Item
-------------------
1 TextLineA
1 TextLineB
2 TextLineA
And what I am trying to achieve is a layout like this;
Id TextLineA TextLineB
--------------------------
1 True True
2 True False
Apologies for my poor formatting, but hopefully it conveys what I am looking for. I have tried Pivot but I don't have anything to sum over as I just want the true/false values rather than a sum.
Also, I have about 15 columns and I don't mind statically writing them out. Any pointers would be greatly appreciated!
Use
Pivot
Tried using a case statement?
This sort of approach will solve this:
This results in:
Where 1 is true and 0 is false.