G
GL
Hello
I have two tables named Customers and Contracts related with a one-to-many
relation.
When I delete a contract record I want the relevant customer’s record to
remain if the certain customer has other contracts. However if the certain
customers has no other contract, I want his record automatically erased. In
other words I don’t want to have orphan records in Customers table.
Do you know a way to do it?
Thank you
GL
I have two tables named Customers and Contracts related with a one-to-many
relation.
When I delete a contract record I want the relevant customer’s record to
remain if the certain customer has other contracts. However if the certain
customers has no other contract, I want his record automatically erased. In
other words I don’t want to have orphan records in Customers table.
Do you know a way to do it?
Thank you
GL