Hi Folks
I have a problem I just can't crack, although I'm sure the solution is straightforward to those in the know!
I have two tables - "Client" and "Assessment". Each assessment belongs to a specific client, with many assessments to one client. Each record in "Assessment" thus contains a numeric field "Client_ID" as a foreign key linking it to a particular "Client" record.
When I delete records from "Assessment", I want to also delete the corresponding "Client" records if and only if the "Assessement" table then contains no assessments for those clients.
To put it another way, I want to delete: All Clients that don't have any assessment records.
Many thanks.
I have a problem I just can't crack, although I'm sure the solution is straightforward to those in the know!
I have two tables - "Client" and "Assessment". Each assessment belongs to a specific client, with many assessments to one client. Each record in "Assessment" thus contains a numeric field "Client_ID" as a foreign key linking it to a particular "Client" record.
When I delete records from "Assessment", I want to also delete the corresponding "Client" records if and only if the "Assessement" table then contains no assessments for those clients.
To put it another way, I want to delete: All Clients that don't have any assessment records.
Many thanks.