This is the table I'm working with:

I would like to identify only ReviewIDs that have duplicate residue IDs for different parameters.
For example, in the image above, ReviewID 114 has two different parameter identifiers, but both entries have the same subtraction identifier.
For my purposes, this entry (ReviewID 114) has an error. There should not be two or more unique parameter identifiers that have the same subtraction identifier for a single review.
I would like to write a query to identify these types of records, but my SQL skills do not yet exist. Help?
Thanks!
Update 1: I am using TSQL (SQL Server 2008) if this helps
Update 2: The result I'm looking for will be the same as the image above, minus any entries that do not meet the criteria that I described.
Hooray!
source share