Unsure of how to perform query and results..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Guys,
 
I have data in a Db that looks something like:
 
14,smithcanada@xxxxxxxxxxxxx,Andrew,Smith
1,smithcanada@xxxxxxxxxxxxx,Andrew,Smith
14,b-richardson@xxxxxxxxxxxxxx,Barbara,Richardson
1,b-richardson@xxxxxxxxxxxxxx,Barbara,Richardson
 
The number represents a product_id that was purchased by the customer in
question. As you can see from this example.. I have a two customers who
purchased two different products.
 
What I NEED to do is have one entry for each customer but with both
their product_id in the same result. For example:
 
14,1,smithcanada@xxxxxxxxxxxxx,Andrew,Smith
 
ANY clue how I could go about getting this to work? I'm very desperate
and running out of time :-(
 
Thanks so much!
 
Aaron
 
 

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux