>>select OC.* from OriginalClients OC LEFT JOIN TORemove TR on OC.ClientID = TR.ClientID where TR.ClientID IS NULL >>into cursor ClientsToKeep >> >>delete all from OriginalClients >>select OriginalClients >>** pack -- would be nice to pack >>insert into OriginalClients select * from ClientsToKeep >>>
>>delete all >> >>recall for ClientID in (select ClientID from ClientsToKeep)I'm not 100% now sure the second method will work. Does the delete trigger fire when you mark record for deletion (I assume it does). If so and you have RI defined (with CASCADE delete), you may not use the second method either :(