I am trying to create a column EAC into Projectdetails. Table 1 : [Projectdetails] Table 2 : ['RAC']
(SELECT b.[EAC] FROM [dbo].[Projectdetails] a
INNER JOIN [dbo].['RAC'] b ON a.[ProjectKey]= b.[Project _ID])
works fine and return me 421 rows.
However the following query does not work :
Insert into [dbo].[Projectdetails]([EAC])
(SELECT b.[EAC] FROM [dbo].[Projectdetails] a
INNER JOIN [dbo].['RAC'] b ON a.[ProjectKey]= b.[Project _ID])
returns me Cannot insert the value NULL into column ProjectKey