Related to this question: Remove rows NOT referenced by a foreign key
But I don't want to delete just yet, and I am not sure I understand the accepted answer there.
I have a table with many rows. Some of them are duplicate (yes I am going to fix the problem generating the duplicates). Now, before removing any duplicates (all is duplicate EXCEPT it's id!), I'd like to make sure the rows are not referenced by another table, in order to be sure I can delete them.
COL_1 COL_2 COL_3 ID
abc cde fgh 1
abc cde fgh 2
abc cde fgh 3
I want to see if I can delete row 2 and 3, and see if those IDs are referenced somewhere... Is that even possible?