here you go...but this is not good design.why do you need this????create function Contencate ( @separator varchar(3), @seqid int)returns varchar(100)asbeginDeclare @List varchar(100)SELECT @List = COALESCE(@List + @separator, '') + srcdata1 FROM tBWHERE seqid = @seqidorder by srcdata1return @listend gocreate table tA (srcdata varchar(100), seqid int, srcdata1 varchar(100))create table tB (srcdata1 varchar(100), seqid int)insert into tAselect '1001', 1, null union all select '1009', 2, null union allselect '1100', 3, nullinsert into tBselect '2001', 1 union allselect '2030', 1 union allselect '2002', 1select * from tAselect * from tBupdate tA set srcdata1 = dbo.Contencate(' ', tA.seqid )select * from tAgodrop table tAdrop table tBdrop function Contencate Go with the flow & have fun! Else fight the flow