I first tried writing this post in generalities but realized it was more confusing that just giving the long version, so here goes.
I have a tree inventory that has property quads (in front of a house, to the left, etc) and then a sequence number so that each tree can be identified by its relative location on that property. Also I have street addresses and names among other attributes. My plan is to automate a way to update the sequence numbers.
My current plan to is concatenate a field for each unique location ("Address" + "StreetName" + "Quad".) I will also create another field with those but also the "Sequence_Num" added onto it.
My plan then is to Sort but the second unique field and then create a for loop that selects all trees by the first unique field and then generates an autoIncrement() value.
The problem is that right now I might have several trees with the same exact value for the second unique field (same "Sequence_Num") and I can't be sure it will sort correctly. So I want to find all trees that have the same Unique value for the 4 field concatentation (address, streetname, quad, sequence.)
Short recap, is there any way to find all features that have the same value for a given field?