I have SQL table like this Table:1
CERT SPEC ClientID
all 1 8
all 2 8
all 3 8
1 all 9
2 all 9
Table: 2 certs
ID Name
1 A
2 B
3 C
Table: 3 SPECS
ID Name
1 X
2 Y
3 Z
Result table
CERT SPEC ClientID
all X,Y,Z 8
A,B all 9
I have use stuff and xml path for but did not get the expected result. Please help me with this.