Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Finding Bad data - Same person with same address / phone entered incorrect Expand / Collapse
Author
Message
Posted Tuesday, August 5, 2014 9:21 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, November 19, 2014 11:39 AM
Points: 108, Visits: 635
Problem:
Person tbl holds personal information for everyone (patient, and emergency contacts).Due to bad data entry, we have some people name misspelled under the person tbl who are either husband or wife (relationship type W or H) to the patient. To resolve the issue 1) We need to identify if the person is listed more than one time, and who are related to the same patient with same relation type (Wife or husband) and has same phone to find the names which are misspelled.
For example, I have person name first name Lina and Linda entered twice, she has relationtype = W to patient 1, and also she got same phones listed in phone tbl. We want to list both records of Lina and Linda who is wife of patient 1 and her phone is the same in phone tbl. That way we identify that Linda name was typed incorrectly.

Below is the schema, I am also attaching same data as well.
Person_Info: PersonID, Person Info contains everyone (patient, vistor, Emergecy contact) First and last names
Patien_Info: PatientID, table contains patient ID and other information
Patient_PersonRelation: Person_ID, patientID, relation
Adress: Contains address of all person and patient (key PersonID)
Phone: Contains phone # of everyone (key is personID)





  Post Attachments 
Schema_test.txt (3 views, 12.47 KB)
Post #1599789
Posted Tuesday, August 5, 2014 9:26 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, November 19, 2014 11:39 AM
Points: 108, Visits: 635
Please disregard my topic - I meant same person with name typo... I tried to edit the topic, but I was not successful.


Post #1599797
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse