I have a table like this
id name value
1 Ram a
2 John b
3 Ram c
4 Ram d
5 John e
I want this conclusion to look like
name value
Ram a,c,d
John b,e
Is there any way to fulfill this request?
UPDATE:
Table format:
id field1 value field2
1 val1 a null
2 val2 b null
3 val1 c null
4 val2 d null
5 null e val1
5 null f val1
5 null g val2
5 null h val2
Output:
field1 field2 value
val1 null a,c
val2 null b,d
null val1 e,f
null val2 g,h
Is there any way to accomplish this?
source
share