1 / 16

Normalisation

Normalisation. Un-normalised. We know what data we want to store in our database Organise it into a table. Un-normalised. Un-normalised. Problem: We can’t store more than one piece of data in one field. First Normal Form. Rule: Remove all repeating groups. First Normal Form.

kolina
Download Presentation

Normalisation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Normalisation

  2. Un-normalised We know what data we want to store in our database Organise it into a table

  3. Un-normalised

  4. Un-normalised Problem: We can’t store more than one piece of data in one field

  5. First Normal Form Rule: Remove all repeating groups

  6. First Normal Form

  7. First Normal Form Problems: We have empty fields? What happens if a student studies four courses? It’s really complicated to read

  8. First Normal Form

  9. First Normal Form Problem: We have redundant information

  10. Second Normal Form Rule: All non-key attributes are dependant on the whole primary key This means: Make sure all data refers only to the primary key and only the primary key

  11. Second Normal Form Student Courses

  12. Second Normal Form To make them talk to each other: Enrolment

  13. Second Normal Form Problem: What happens if a tutor teaches more than one course? We get more repeating and redundancy

  14. Third Normal Form Rule: No attributes are dependant on other non-key attributes This means: Make sure no data refers anything other than the primary key

  15. Third Normal Form Student Course

  16. Third Normal Form Tutor Enrolment

More Related