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

Duplicate Address Level data in the org(which has separate hosting) database causing confusion #1437

Open
ashusvnath opened this issue Nov 21, 2023 · 0 comments

Comments

@ashusvnath
Copy link

ashusvnath commented Nov 21, 2023

SELECT al.id,al.title, i.id as individual_id, i.is_voided as individual_is_voided ,i.first_name, i.last_name 
FROM address_level al JOIN individual i on al.id = i.address_id where title IN 
      ( SELECT title FROM address_level WHERe is_voided = false GROUP BY title HAVING count(*) > 1) 
ORDER BY title ASC;

This show a list of voided and non-voided individuals associated with different address hierarchies.

   id   |                      title                      | individual_id | individual_is_voided 
     80 | ADDAPUSEELA GOWRI SANKARA RAO School            |            38 | t
   4079 | ADDAPUSEELA GOWRI SANKARA RAO School            |         23312 | f
   4079 | ADDAPUSEELA GOWRI SANKARA RAO School            |         23314 | f
   4079 | ADDAPUSEELA GOWRI SANKARA RAO School            |         23301 | f
   4079 | ADDAPUSEELA GOWRI SANKARA RAO School            |         23147 | f
   4079 | ADDAPUSEELA GOWRI SANKARA RAO School            |         23328 | f
   4147 | A HARIBABU School                               |         23350 | f
    148 | A HARIBABU School                               |           106 | t
    148 | A HARIBABU School                               |           203 | t
   4147 | A HARIBABU School                               |         23346 | f
   4147 | A HARIBABU School                               |         23345 | f

@ashusvnath ashusvnath changed the title Duplicate data in LFE database causing confusion Duplicate Address Level data in LFE database causing confusion Nov 21, 2023
@mahalakshme mahalakshme changed the title Duplicate Address Level data in LFE database causing confusion Duplicate Address Level data in the org(which has separate hosting) database causing confusion Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New Issues
Development

No branches or pull requests

1 participant