Question : Make Table Query that searches for records that are NOT located in two tables.

I have two tables.
Table one is called. SKPIUPDATE and table two is called SKPIProblemLog. Each table as a primary key called. ScrapRecordTag

SkpiUpdate is a table that feeds SkpiProblemLog with new records. However, there are times that records are deleted from SkpiUpdate and are NO longer needed in SkpiProblemLog.

I would like to create a maketable query that will cross check to see which tables are in SkpiProblemLog and are NO longer in SkpiUPdate. (This will tell me what has been deleted from the master data set.

Answer : Make Table Query that searches for records that are NOT located in two tables.

create trigger tr_BatchProcessShipments_I
on BatchProcessShipments
after INSERT
AS
begin
insert into Xcarriershipping(interface, companyname, shippingcost)
select batchnumber, companyid, cost
from inserted
end
go

the names of the tables actually are INSERTED and DELETED.  
http://msdn.microsoft.com/en-us/library/ms191300.aspx
Random Solutions  
 
programming4us programming4us