I believe this will work if you are using SQL Server:
DELETE Contributors
FROM Contributors as c
LEFT JOIN License as l
ON c.id = l.ContributorID
WHERE l.id is null
A good test to perform before deleting is to replace the string DELETE Contributorswith SELECT *. This will show you all the entries that are about to be deleted, so this is a good health check ...
So your sanity check would look like this:
SELECT *
FROM Contributors as c
LEFT JOIN License as l
ON c.id = l.ContributorID
WHERE l.id is null
source
share