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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 add delimeter
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

noblemfd
Starting Member

Nigeria
38 Posts

Posted - 07/13/2013 :  17:53:10  Show Profile  Reply with Quote
I have a table like this:
CREATE TABLE [dbo].[tblwaybill](
[itemid] [nvarchar](50) NULL,
[date1] [datetime] NULL,
[Quantity] [float](8) NULL,
[invoicenum] [nvarchar](50) NULL,
[waybill2] [nvarchar](200) NULL,
[price] [money] NULL

) ON [PRIMARY]

How do I use delimer ',' to separate values of a particular column (waybill2) where invoice numbers are the same

Example
invoicenum waybill2
INV1 0001,0004,0005
INV2 0007
INV3 0002,0003

khtan
In (Som, Ni, Yak)

Singapore
17689 Posts

Posted - 07/13/2013 :  22:11:24  Show Profile  Reply with Quote
see http://sqlblog.com/blogs/adam_machanic/archive/2006/07/12/rowset-string-concatenation-which-method-is-best.aspx


KH
Time is always against us

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.07 seconds. Powered By: Snitz Forums 2000