I have a table with two columns relationship type and lives with like the following, I want all the relationship types values which has 'T' in lives with column in one column
+------------+---------+
|relationship|liveswith|
+------------+---------+
|A |T |
+------------+---------+
|B |T |
+------------+---------+
|C |F |
+------------+---------+
like this
+------------+---------+
|T |F |
+------------+---------+
|A B |C |
+------------+---------+
I tried using Pivot but it only gives me one values in T column. I am using Microsoft SQL Server 2012