rrattie
asked on
SQL - transposing data from duplicate records
Okay here's what I'm trying to do.
I have a table with the columns
customer_id product_purchased
When I query it comes out like:
1 product1
1 product2
1 product4
2 product3
2 product4
3 product3
3 product2
What I want is:
1 product1, product2, product4
2 product3, product4
3 product3, product2
Any thoughts? I've been trying this via SQL and Coldfusion, but I'm stumped after 2 days.
I have a table with the columns
customer_id product_purchased
When I query it comes out like:
1 product1
1 product2
1 product4
2 product3
2 product4
3 product3
3 product2
What I want is:
1 product1, product2, product4
2 product3, product4
3 product3, product2
Any thoughts? I've been trying this via SQL and Coldfusion, but I'm stumped after 2 days.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER