How can I delete about 9000 rows from one table (Table1) based on whether they also are in another table (Table2)? I tried the following:
DELETE FROM Table1 T
WHERE T.DocNo = Table2.DocNo
and T.DocTyp = Table2.DocTyp
and T.DocLn = Table2.DocLn
DELETE FROM Table1 T
WHERE T.DocNo = Table2.DocNo
and T.DocTyp = Table2.DocTyp
and T.DocLn = Table2.DocLn
Comment