<meta name='google-adsense-platform-account' content='ca-host-pub-1556223355139109'/> <meta name='google-adsense-platform-domain' content='blogspot.com'/> <!-- --><style type="text/css">@import url(//www.blogger.com/static/v1/v-css/navbar/3334278262-classic.css); div.b-mobile {display:none;} </style> </head> <body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d2110564875967830374\x26blogName\x3d%E2%99%A5+Marielle.+Yr+12+IPT\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://justdareyou.blogspot.com/search\x26blogLocale\x3den\x26v\x3d2\x26homepageUrl\x3dhttps://justdareyou.blogspot.com/\x26vt\x3d1537764824001591938', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe", messageHandlersFilter: gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER, messageHandlers: { 'blogger-ping': function() {} } }); } }); </script>



entriesaboutchatlinks

Wednesday, February 23, 2011
Normalisation @ 4:32 PM

~Normalisation~

Advantages of Normalisation
  • Takes up less space as it removes data redundancy
  • Allows for faster querying due to less data being processed

First Normal Form (1NF)

  • Each filed stores data items
  • If data items can be separated, then separate them
  • No multiple data items within individual fields and no fields are repeated

Second Normal Form (2NF)

  • All tables must comply with 1NF (nothing is repeated)
  • Non-key attributes (not unique) are functionally dependent on the primary key (e.g. stud ID 001 is smith but stud ID 002 is also smith but a DIFFERENT smith)
  • The primary key defines only ONE non-key attribute although doesn't have to be unique
  • Example: date of birth, address, etc are all functionally dependent on the student ID

Third Normal Form (3NF)

  • All tables must comply with 1NF and 2NF
  • Every non-key attribute is functionally dependent only on the set table's primary key