↧
Answer by Josh Darnell for Purging of unreferenced data via unconditional...
One option would be to create views for these "inconvenient" tables that only return rows where all foreign key relationships have been broken. Then you could do unconditional deletes from those...
View ArticlePurging of unreferenced data via unconditional DELETE, by leaning on foreign...
I'm designing a database from which old data has to be purged regularly for legal reasons, and I'm trying to figure out the best way to organise the purging.Dealing with the main tables is trivial,...
View Article