Duplicate values with a condition (1 Viewer)

Joy83

Member
Local time
Today, 06:08
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
 

Ranman256

Well-known member
Local time
Today, 09:08
Joined
Apr 9, 2015
Messages
4,339
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

Top Bottom