I have a bunch of data in a table that serves as the parent (primary key in foreign key relationship) to several other tables. I basically want to go through this table and try and delete records that do not have children. I have already deleted the children, so there are parents that are childless.
If a record can be deleted, delete it, otherwise move onto the next record and don't show me that cannot delete error.
This isn't any kind of production need, I was just messing around with some test code and deleted some children, now I want to delete their sad parents.
This can either be done in sql or C# linq stuff. I basically just want to clear out my irrelevant data.