I have table T1
ID X Y ProtocolID
1 4 2 100
2 9 0 101
3 5 1 104
and table T2
ID Entry Category ProtocolID
1 "XYZ" 700 100
2 "ABC" 701 100
3 "UZT" 702 100
4 "TRS" 704 100
5 "YBS" 700 101
6 "VTX" 701 101
7 "SAJ" 702 101
8 "POL" 710 101
9 "UIT" 700 104
10 "UCN" 701 104
11 "POI" 702 104
I need to join the tables on ProtocolID
and put Entries with Category
value 700
, 701
, 702
into a single row. The resulting table should look like
T1.ID X Y Entry700 Entry701 Entry702
1 4 2 "XYZ" "ABC" "UZT"
2 9 0 "YBS" "VTX" "SAJ"
3 5 1 "UIT" "UCN" "POI"