The following selects the records i want from the table:Select * FROM dbo.arrest t1WHERE arrestno NOT IN (SELECT arrestno FROM newgcsowarrants t2 WHERE t2.arrestno=t1.arrestno)
The following moves those rows into a new table:Select * into dbo.warrantsnotneeded2 FROM dbo.arrest t1WHERE arrestno NOT IN (SELECT arrestno FROM newgcsowarrants t2 WHERE t2.arrestno=t1.arrestno)
WHY does the following not, then, delete those rows now moved into the new table OUT of the arrest table????:Delete from dbo.arrest t1WHERE arrestno NOT IN (SELECT arrestno FROM newgcsowarrants t2 WHERE t2.arrestno=t1.arrestno)