I have a table that contains funding sources. It has recently been brought to my attention that there are duplicate entries in the funding source table.
EXAMPLE
fundName: AAA, fundNumber: 123-456-7890, departmentID: 1
fundName: ZZZ, fundNumber: 123-456-7890, departmentID: 746
As you can see fund “AAA”, and fund “ZZZ” have been assigned the same fundNumber. Both funds are currently active.
I need to write an update statement, which identifies duplicate fundNumbers, and inactivates the duplicates which reside in a specific department. How do I identify the duplicates fundNumbers?
Thanks in advance for your help!
Ingrid
EXAMPLE
fundName: AAA, fundNumber: 123-456-7890, departmentID: 1
fundName: ZZZ, fundNumber: 123-456-7890, departmentID: 746
As you can see fund “AAA”, and fund “ZZZ” have been assigned the same fundNumber. Both funds are currently active.
I need to write an update statement, which identifies duplicate fundNumbers, and inactivates the duplicates which reside in a specific department. How do I identify the duplicates fundNumbers?
Thanks in advance for your help!
Ingrid