I want to Make query which will set Product Name to Product NAme + Category Name where Categories can be multiple
Update P Set P.Name = ISNULL(P.Name,'')+','+ C.NAme
from Product P
Left Outer Join Category C On P.CategoryId = C.Id.
Now one Product can have multiple categories E.g. Alpenliebe Jar product can have Multiple Categories as Toffies and Candies I want to set its Name to Alpenliebe Jar,Toffies,Candies My current query works but only setting name to Alpenliebe Jar,Toffies
Any Help