So I am really confused on how to write this proc. Here is what needs to be done.
I have 3 tables laid out as follows:
tblObject {ObjectId, MasterId}
tblAnotherObject {ObjectId}
tblFurtherObject {ObjectId}
I need a proc that can delete the rows in 'tblAnotherObject' and 'tblFurtherObject' that contain an 'ObjectId' that does NOT have a matching 'ObjectId' in 'tblObject' that is paired with a passed in 'MasterId' to the proc.
I have been banging my head against a wall for hours today, and I have no clue how to write something like this...thank you so much ahead of time.