Robert, I don't think you need a cursor so much as just the right DELETE. It would look something like this DELETE T FROM Users U INNER JOIN TableX T ON T.User = U.User and GroupID = yyy WHERE U.Email = email [Non-text portions of this message have been removed]