Hi,
I'm trying to populate a new column in a table with data residing in another table's column.
UPDATE dbo.PackageSessionNodes
SET Created_By =
(select userid from dbo.PackageSessions, dbo.PackageSessionNodes
where dbo.PackageSessions.PackageSessionId
= dbo.PackageSessionNodes.PackageSessionId)
The update fails because of the subquery retuns more than one value. I'm obviously a sql noob, so any help would be appreciated.
Thx!