Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attorney leading zeros are (sometimes?) removed, creating duplicate records #10

Open
anastasia opened this issue Jul 30, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@anastasia
Copy link
Collaborator

Not yet sure where this is happening first:

Screen Shot 2023-07-30 at 1 39 46 PM
@anastasia anastasia added the bug Something isn't working label Jul 30, 2023
@anastasia
Copy link
Collaborator Author

SELECT *
FROM attorneys
WHERE name IN (SELECT name
                      FROM attorneys
                      GROUP BY name
                      HAVING COUNT(name) > 1);

Produces only four records, so two matches. Only one set with leading zeros!! Possibly I've found a needle in a haystack. Will post about the other case (bar numbers 416000 and 667109) in eviction attorneys repo

@ericrobskyhuntley
Copy link
Contributor

Interesting... seems like this one is a pretty easy fix, though? Logic basically being where names match and bar numbers differ by a leading zero, discard one of the records, or possibly - if we want to be maybe unrealistically clean about it - separate the attorney from the address. It hurts me to say this, but maybe just satisfice here and pick the one from the more recent case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants