First of all design the table and add the new field.
Or run
ALTER TABLE SalesData
ADD SBCMP smallint NULL
Then you may use MERGE in order to get data.
MERGE SalesData AS target
USING (SELECT * FROM SalesDataNew) AS source
ON (target.IDField = source.IDField )
WHEN MATCHED THEN
UPDATE SET SBLOC = source.SBLOC,
SBCUST = source.SBCUST ,
RMNAME = source.RMNAME,
IFPRVN = source.IFPRVN ,
SBITEM = source.SBITEM ,
SBITD1 = source.SBITD1 ,
SBDIV = source.SBDIV ,
SBCLS = source.SBCLS ,
SBQSHP = source.SBQSHP ,
AVC = source.AVC,
SBEPRC = source.SBEPRC,
SBINV = source.SBINV ,
SBORD = source.SBORD,
SBTYPE = source.SBTYPE,
SBINDT = source.SBINDT,
RMSTAT = source.RMSTAT ,
SBCMP = source.SBCMP
WHEN NOT MATCHED THEN
INSERT (SBLOC,
SBCUST ,
RMNAME,
IFPRVN ,
SBITEM ,
SBITD1 ,
SBDIV ,
SBCLS ,
SBQSHP ,
AVC ,
SBEPRC ,
SBINV ,
SBORD,
SBTYPE,
SBINDT,
RMSTAT,
SBCMP )
VALUES (source.SBLOC,
source.SBCUST ,
source.RMNAME,
source.IFPRVN ,
source.SBITEM ,
source.SBITD1 ,
source.SBDIV ,
source.SBCLS ,
source.SBQSHP ,
source.AVC ,
source.SBEPRC ,
source.SBINV ,
source.SBORD,
source.SBTYPE,
source.SBINDT,
source.RMSTAT
source.SBCMP)
Keep in mind that i have used an imaginary field called IDField in the ON clause of the MERGE. This is imaginary as it is not clear which is the id of the table. If there are two columns forming the id you should add them as you would in a JOIN statement.
One more thing is that i have named the new table as SalesDataNew as i didn't know its actual name.
The MERGE is FULL OUTER JOINning the two tables (called target and source). Then for matched rows it is performing an UPDATE and for rows not matched that are on the source and not on the target it performs an INSERT. Both UPDATE and INSERT are performed on the target.
It could be possible to do something on the target when there are rows on the target but not on the source (here you usually delete) but this is out of scope i believe.
If you just want to UPDATE and not INSERT then the above is ok for you (though you should remove the WHEN NOT MATCHED THEN part. You can also do a straight UPDATE.
An example would be:
UPDATE SalesData
SET SBLOC = source.SBLOC,
SBCUST = source.SBCUST ,
RMNAME = source.RMNAME,
IFPRVN = source.IFPRVN ,
SBITEM = source.SBITEM ,
SBITD1 = source.SBITD1 ,
SBDIV = source.SBDIV ,
SBCLS = source.SBCLS ,
SBQSHP = source.SBQSHP ,
AVC = source.AVC,
SBEPRC = source.SBEPRC,
SBINV = source.SBINV ,
SBORD = source.SBORD,
SBTYPE = source.SBTYPE,
SBINDT = source.SBINDT,
RMSTAT = source.RMSTAT ,
SBCMP = source.SBCMP
FROM SalesData target
JOIN SalesDataNew source
ON target.IDField = source.IDField