Duplicate values with a condition

Joy83

Member
Local time
Today, 14:21
Joined
Jan 9, 2020
Messages
116
Hi
I have a table
ID, Unit, Department
I need your help to extract the records (not the count ) but to filter those IDs that are duplicates but the department for them are not the same


1Unit1Dep1
1Unit2Dep1
3Unit3Dep3
2Unit1Dep1
5Unit2Dep3
2Unit3 Dep2

I want a query that gets me the two records of ID (2) because they are duplicated and not sharing the same department
 
start the Query Wizard, click Find Duplicates,
it will ask for what field are duplicated: add UNIT, DEPT
then it will ask other fields, add ID
run
 

Users who are viewing this thread

Back
Top Bottom