When I execute the following query:
I get results:
123, Saw
123, Screwdriver
123, Screwdriver
123, Hammer
112, Saw
112, Pliers
112, Pliers
189, Plane
What I would like to do is write a query that returns the results in fewer rows by concatenating the product descriptions for each customer - e.g.
123, Saw/Screwdriver/Screwdriver/Hammer
112, Saw/Pliers/Pliers
189, Plane
Any suggestions?
Thanks in advance
Code:
SELECT CustId, Product FROM Orders
123, Saw
123, Screwdriver
123, Screwdriver
123, Hammer
112, Saw
112, Pliers
112, Pliers
189, Plane
What I would like to do is write a query that returns the results in fewer rows by concatenating the product descriptions for each customer - e.g.
123, Saw/Screwdriver/Screwdriver/Hammer
112, Saw/Pliers/Pliers
189, Plane
Any suggestions?
Thanks in advance