This is my table:
The filteredID is the criteria that the rows will be filtered against. However, if one row meets the criteria, I want to delete all rows with the same staffID. For example, if the filteredID is set to 50 or 88.I want to filter all the "james" rows.
So my output will be:
Could not think of a elegant way to tackle this.