Select table1 SET ORDER TO custn1_2 && index on custn1+custn2 Select table2 SET RELATION TO custn1+custn2 INTO table1 SCAN FOR NOT FOUND("table1") DELETE ENDSCANOr
SELECT * FROM table2 ; WHERE custn1+custn2 NOT IN ( SELECT custn1+custn2 FROM table1) ; INTO CURSOR crsNotin1 NOFILTER INDEX ON custn1+custn2 TAG custn1_2 SET ORDER TO custn1_2 Select table2 SET RELATION TO custn1+custn2 INTO crsNotin1 SCAN FOR NOT FOUND("crsNotin1") DELETE ENDSCAN