if you're on SQL 2000 create a function as belowCREATE FUNCTION dbo.StrucureListGet(@Site varchar(10))RETURNS varchar(8000)ASBEGINDECLARE @List varchar(8000)SELECT @List=COALESCE(@List + ',','') + StructureFROM Table1WHERE Site=@SiteRETURN @ListEND and use it as UPDATE t2SET t2.Structure= t1.StructureFROM table2 t2JOIN (SELECT DISTINCT Site,dbo.StrucureListGet(Site) AS Structure FROM Table1) t1ON t1.Site=t2.Site
------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/