Hello guys
I have a table (table1) with four columns:
CustomerID,
CallID,
NotesID,
Notes
There are many customers, who have many CallID. Each CallID has many NoteID, ie 1,2,3, each notesID has a one to one with Notes which holds Varchar(255) strings.
I.E.
CustID CallID NoteID Notes
----------------------------------------------
21300380 1 1 a
21300380 2 1 b
21398328 1 1 c
21398328 2 1 d
100035149 1 1 e
100046025 1 1 f
100046025 1 2 g
100046025 1 3 h
100046025 2 1 i
100046025 3 1 j
I have to create a new table (table2) with the fields:
CustomerID
CallID
Notes
The new table (table2) field Notes should be a concatenation of the Notes field of table1.
I.E. using above data
CustID CallID Notes
----------------------------------------------
21300380 1 a
21300380 2 b
21398328 1 c
21398328 2 d
100035149 1 e
100046025 1 fgh
100046025 2 i
100046025 3 j
Hope thats clear enough for anyone to help...
Cheers in advance
Mark
I have a table (table1) with four columns:
CustomerID,
CallID,
NotesID,
Notes
There are many customers, who have many CallID. Each CallID has many NoteID, ie 1,2,3, each notesID has a one to one with Notes which holds Varchar(255) strings.
I.E.
CustID CallID NoteID Notes
----------------------------------------------
21300380 1 1 a
21300380 2 1 b
21398328 1 1 c
21398328 2 1 d
100035149 1 1 e
100046025 1 1 f
100046025 1 2 g
100046025 1 3 h
100046025 2 1 i
100046025 3 1 j
I have to create a new table (table2) with the fields:
CustomerID
CallID
Notes
The new table (table2) field Notes should be a concatenation of the Notes field of table1.
I.E. using above data
CustID CallID Notes
----------------------------------------------
21300380 1 a
21300380 2 b
21398328 1 c
21398328 2 d
100035149 1 e
100046025 1 fgh
100046025 2 i
100046025 3 j
Hope thats clear enough for anyone to help...
Cheers in advance
Mark