Hi,
I have a Table1 and Table2.
They have a relationship with the column "WorkOrder". Table1 has all "WorkOrders" and Table2 has most of them (but not all).
I would like to delete from Table1 the "WorkOrders" that are not in Table2.
I think it would be something like that but I am not sure.
DELETE Table1.* FROM [Table1] INNER JOIN [Table2] ON Table2.WorkOrder WHERE ????? <<< I don't know what should I put here ...
Could someone help me?
Thanks
I have a Table1 and Table2.
They have a relationship with the column "WorkOrder". Table1 has all "WorkOrders" and Table2 has most of them (but not all).
I would like to delete from Table1 the "WorkOrders" that are not in Table2.
I think it would be something like that but I am not sure.
DELETE Table1.* FROM [Table1] INNER JOIN [Table2] ON Table2.WorkOrder WHERE ????? <<< I don't know what should I put here ...
Could someone help me?
Thanks