i have a table like that:-
coll'n_id price
----------- --------
1 ---- 500
1 ---- 600
2 ---- 300
2 ---- 400
2 ---- 800
3 ---- 200
4 ---- 200
and i want the output like that:-
coll'nn_id price
----------- --------
1 ------ 500,600
2 ---- 300,400,800
3 ---- 200
please suggest me how can achieve this output?it means i want for same collection_id different price come in same row sepreated by comma(,) and if the price is same for same collection_id then single price would display ,not duplicate price in same column..... plz help me..?
coll'n_id price
----------- --------
1 ---- 500
1 ---- 600
2 ---- 300
2 ---- 400
2 ---- 800
3 ---- 200
4 ---- 200
and i want the output like that:-
coll'nn_id price
----------- --------
1 ------ 500,600
2 ---- 300,400,800
3 ---- 200
please suggest me how can achieve this output?it means i want for same collection_id different price come in same row sepreated by comma(,) and if the price is same for same collection_id then single price would display ,not duplicate price in same column..... plz help me..?
Comment