| How to retrieve different data separated by comma into one column [message #429483] |
Wed, 04 November 2009 02:40  |
anusha539 Messages: 7 Registered: October 2009 Location: Hyderabad |
Junior Member |
|
|
Hi all,
I have a Customer table.In that some of the customer's Bill-To address is different remaining all columns contain same data.In that case if I query with that customer_number it displays more than one row with different Bill-to addresses,it is fine.But my requirement is I need to display only one row for that customer_number and Bill-to address column shows all Bill-to addresses corresponding to that customer separated by comma.
Could anyone give me any idea to solve this.
Thanks in Advance,
Anusha.
|
|
|
|
|
|
|
| Re: How to retrieve different data separated by comma into one column [message #429687 is a reply to message #429661] |
Thu, 05 November 2009 04:10  |
Frank Messages: 7317 Registered: March 2000 |
Senior Member |
|
|
kish_ulike wrote on Thu, 05 November 2009 08:38Anusha
you can make a transpose table in which u can get the different addressinto single row for example
custmer1 with address1,address2,address3 etc and u can fetch from that table.
This is the SQLServer/Sybase way of doing things. In Oracle you typically would not store intermediate results in tables.
|
|
|