I want to concatenate values together into a column based on ID.
Is there a way to concatenate two columns based on another column with SQL statements?
My table looks like this
customerID Name Values
1 John 10apples
1 John 20oranges
1 John 30bananas
2 Steve 15apples
2 Steve 20oranges
2 Steve 35bananas
my expected query should give me some thing like this
customerID Name Values FAKENAME
1 John 10apples 10apples_20oranges_30bananas
1 John 20oranges
1 John 30bananas
2 Steve 15apples 15apples_20oranges_35bananas
2 Steve 20oranges
2 Steve 35bananas
basically for distinct Ids it should create a famke name by combining values