Question : SQL Insert

When i run the following query, instead of inserting the values correctly. the values get added to the table.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
INSERT INTO
	tblMain
	(ExpectedVolume,Report,BatchCode,CSRep)
SELECT  

	ExpectedVolume.[Expected Volume],
	ExpectedVolume.Report,
	ExpectedVolume.BatchCode,
	ExpectedVolume.[CS Rep]

FROM         
	ExpectedVolume 
		INNER JOIN
			tblMain 
		ON ExpectedVolume.GCN = tblMain.GCN
WHERE 
	ExpectedVolume.GCN = tblMain.GCN

Answer : SQL Insert

try this
1:
2:
3:
4:
update a
set a.ExpectedVolume = b.[Expected Volume]
from tblMain a 
inner join ExpectedVolume b on a.GCN = b.GCN
Random Solutions  
 
programming4us programming4us