I am having two table product and sale in sql database .
productId name
1 a
2 b
3 c
Sale
ID productId sale
1 1 5
2 2 10
3 1 20
4 1 50
Now I want using of both table I need the out put in this format using sql :
productId name sale
1 a 5,20,50
2 b 10
can u plz any one tell me how i can get my sale column vale as comma separted values using sql query.