I'd like to loop through the following table (this loop is not the problem)
The method should return "success" to me, if one of the items with the same IDs (ID1 and ID2) is on success and all other items are also on success. See the picture above one 7 - 7 is on failed and one 7 -7 is on success so this should return success. But only, if the other entry in the db (ID1 = 7 and ID2 = 8) is also on success.
Is there a way to do this?