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)
 add delimeter

Author  Topic 

noblemfd
Starting Member

38 Posts

Posted - 2013-07-13 : 17:53:10
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)

17689 Posts

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


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -