Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Problem updating column with multiple values

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-11-11 : 07:26:45
Dennis writes "I have a table (A) that has the following columns:

customer (unique)
vendor_list

I have another table (B) that has the following:
customer
vendor

I want to update the vendor_list column in table (A) with all the vendors it finds for the customer in table (B).

Example table (B)
Customer Vendor
123456 ABC
123456 DEF
123456 GHI

After update, table (A) should have:
Customer Vendor_list
123456 ABC, DEF, GHI

How can I do this in SQL?"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-11-11 : 07:36:15
No need for updatation
It seems it is for display only

Refer this
http://sqljunkies.com/WebLog/amachanic/archive/2004/11/10/5065.aspx?Pending=true

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -