INSERT INTO trackingInfo(
trackingInfo.Shipper,
trackingInfo.Main_Acct,
trackingInfo.Tracking,
trackingInfo.Pickup_Date,
trackingInfo.Ship_Date)
SELECT
trackingInfo_scratch.Shipper,
trackingInfo_scratch.Main_Acct,
trackingInfo_scratch.Tracking,
trackingInfo_scratch.Pickup_Date,
trackingInfo_scratch.Ship_Date,
FROM trackingInfo_scratch
WHERE NOT EXISTS
(SELECT trackingInfo.Tracking, trackingInfo.Ship_Date
FROM trackingInfo
WHERE trackingInfo.Tracking = trackingInfo_scratch.Tracking and
trackingInfo.Ship_Date = trackingInfo_scratch.Ship_Date)
|