IS6125 Database Analysis and Design Additional normalization example Rob Gleasure R.Gleasure@ucc.ie www.robgleasure.com
Normalisation example Table of doctor’s appointments Patient ID Name Contact Emergency contact Appointments Procedures Paid Notes 1543487 John Smith 0241659487 Jane Smith, 0861456718 15th Dec 2017 28th Dec 2017 1st Jan 2018 Check-up Eye exam Yes No Allergic to penicillin 1543488 Margaret Dunning 0874162548 Mary Alves, 0214852416 21st Jan 2018 3rd Mar 2018 Surgery None Elizabeth Cartmond 0215341626 Fred Cartmond, 4th Apr 2018 11th Apr 2018 Tests Follow-up Claustrophobic
Normalisation example: 1st NF Patient ID Fname Lname Contact Emergency name Emergency number Appointment s Procedures Paid Notes 15434 87 John Smith 0241659487 Jane Smith 0861456718 15th Dec 2017 Check-up Yes Allergic to penicillin 28th Dec 2017 No 1st Jan 2018 Eye exam 15434 88 Margaret Dunning 0874162548 Mary Alves 0214852416 21st Jan 2018 Surgery None 3rd Mar 2018 Elizabeth Cartmond 0215341626 Fred Cartmond 4th Apr 2018 Tests Claustro- phobic 11th Apr 2018 Follow-up
Normalisation example: 2nd NF Patient ID Fname Lname Contact Emergency name Emergency number Notes 154348 7 John Smith 024165 9487 Jane Smith 086145671 8 Allergic to penicillin 154348 8 Margaret Dunning 087416 2548 Mary Alves 021485241 6 None Elizabeth Cartmon d 021534 1626 Fred Cartmond 021534162 6 Claustro- phobic Patient ID Appointme nts Procedure s Paid 1543487 15th Dec 2017 Check-up Yes 28th Dec 2017 No 1st Jan 2018 Eye exam 1543488 21st Jan 2018 Surgery 3rd Mar 2018 4th Apr 2018 Tests 11th Apr 2018 Follow- up
Normalisation example: 3rd NF Patient ID Fname Lname Contact Emergency number Notes 1543487 John Smith 0241659 487 0861456718 Allergic to penicillin 1543488 Margaret Dunning 0874162 548 0214852416 None Elizabeth Cartmond 0215341 626 0215341626 Claustro- phobic Patient ID Appointments Procedures Paid 1543487 15th Dec 2017 Check-up Yes 28th Dec 2017 No 1st Jan 2018 Eye exam 1543488 21st Jan 2018 Surgery 3rd Mar 2018 4th Apr 2018 Tests 11th Apr 2018 Follow-up Emergency number Emergency name 0861456718 Jane Smith 0214852416 Mary Alves 0215341626 Fred Cartmond