This is a bit odd to explain, but I'm looking to find records that have a one field that's duplicated, while a second field is different. It's proprietary data, so I can't post the exact thing, but here's an example:
In this case, I need to return Employees with different names sharing the same ID, Bob and Jim in our example. Since the table can store multiple records for the same employee, the usual count/group by approach isn't working for me. I know I've dealt with something like this in the past, but for the life of me can't remember how. It's doubly bad as I'm already on brain fry shifting back to Oracle after several years gone.
Can someone point me back in the right direction?
Code:
EmpID EmpName IncidentID
111 Bob Smith 123
111 Bob Smith 212
222 Tom Jones 341
111 Jim Hart 635
111 Bob Smith 781
In this case, I need to return Employees with different names sharing the same ID, Bob and Jim in our example. Since the table can store multiple records for the same employee, the usual count/group by approach isn't working for me. I know I've dealt with something like this in the past, but for the life of me can't remember how. It's doubly bad as I'm already on brain fry shifting back to Oracle after several years gone.
Can someone point me back in the right direction?