Hello,
I have 2 tables (tblCustomer and tblMill) and my problem is the following:
tblCustomer contains only the name of the customers (named Customer)
tblMill contains many info and one field is the customer (named Customer)
Here is what I would like to do:
I delete one record from the tblMill --> Fine,
BUT after (and this is my problem)
I would like to check if every record from tblCustomer exists in tblMill and if not, delete that record from tblCustomer.
What would be the SQL code for that?
Thanks
Mario
I have 2 tables (tblCustomer and tblMill) and my problem is the following:
tblCustomer contains only the name of the customers (named Customer)
tblMill contains many info and one field is the customer (named Customer)
Here is what I would like to do:
I delete one record from the tblMill --> Fine,
BUT after (and this is my problem)
I would like to check if every record from tblCustomer exists in tblMill and if not, delete that record from tblCustomer.
What would be the SQL code for that?
Thanks
Mario