Hi Everyone,
I want to find the deleted records that are common to two tables based on common key field on each table, let me give you a little detail
Mainasbly table has a field named mainpk, type= integer autoincrement 4
subassbly table " " " " mainfk type= integer 4
so the mainfk value, it is always the same as mainpk
Ok, so i have this SQL as below shown and it does not show the deleted records
Select t1.mainpk, t1.job_no, t1.empfk, t2.mainfk, t2.workstart;
FROM mainassbly t1, subassbly t2;
WHERE t1.mainpk = t2.mainfk and DELETED() INTO Cursor junkresult
if i leave "DELETE()" and remove the "subassbly t2 and the t1.mainpk = t2.mainfk and" from the SQL CODE, then it will show me the delete records on mainassbly, of course i also removed the fields from subassbly from the code, but actually what i want is be able to run this sql to recall the records deleted from both tables, if run the code as above and remove the "delete(), i can get all the values displayed from both tables, it is something wrong in the code, or it has to do with the "SET DELETE OFF" and the sql ?
Thanks a lot in advance
I want to find the deleted records that are common to two tables based on common key field on each table, let me give you a little detail
Mainasbly table has a field named mainpk, type= integer autoincrement 4
subassbly table " " " " mainfk type= integer 4
so the mainfk value, it is always the same as mainpk
Ok, so i have this SQL as below shown and it does not show the deleted records
Select t1.mainpk, t1.job_no, t1.empfk, t2.mainfk, t2.workstart;
FROM mainassbly t1, subassbly t2;
WHERE t1.mainpk = t2.mainfk and DELETED() INTO Cursor junkresult
if i leave "DELETE()" and remove the "subassbly t2 and the t1.mainpk = t2.mainfk and" from the SQL CODE, then it will show me the delete records on mainassbly, of course i also removed the fields from subassbly from the code, but actually what i want is be able to run this sql to recall the records deleted from both tables, if run the code as above and remove the "delete(), i can get all the values displayed from both tables, it is something wrong in the code, or it has to do with the "SET DELETE OFF" and the sql ?
Thanks a lot in advance