Perancangan Basis Data

Slides:



Advertisements
Similar presentations
1/22/20091 Study the methods of first, second, third, Boyce-Codd, fourth and fifth normal form for relational database design, in order to eliminate data.
Advertisements

Boyce-Codd NF Takahiko Saito Spring 2005 CS 157A.
Normalization What is it?
Fundamentals, Design, and Implementation, 9/e Chapter 4 The Relational Model and Normalization.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Chapter 3 The Relational Model and Normalization
DBSQL 4-1 Copyright © Genetic Computer School 2009 Chapter 4 Database Design.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 3 Objectives: Identifying and Eliminating Database.
Lecture 12 Inst: Haya Sammaneh
SQL Normalization Database Design Lecture 5. Copyright 2006Page 2 SQL Normalization Database Design 1 st Normal Form 1 st Normal Form 2 nd Normal Form.
Fundamentals, Design, and Implementation, 9/e. Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 4/2 Copyright.
Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 4 This material was developed by Oregon Health & Science.
Normalization. 2 Objectives u Purpose of normalization. u Problems associated with redundant data. u Identification of various types of update anomalies.
RDBMS Concepts/ Session 3 / 1 of 22 Objectives  In this lesson, you will learn to:  Describe data redundancy  Describe the first, second, and third.
Chapter 4 The Relational Model and Normalization.
Module III: The Normal Forms. Edgar F. Codd first proposed the process of normalization and what came to be known as the 1st normal form. The database.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 5 Normalization of Database.
SALINI SUDESH. Primarily a tool to validate and improve a logical design so that it satisfies certain constraints that avoid unnecessary duplication of.
M Taimoor Khan Course Objectives 1) Basic Concepts 2) Tools 3) Database architecture and design 4) Flow of data (DFDs)
In this chapter, you learn about the following: ❑ Anomalies ❑ Dependency and determinants ❑ Normalization ❑ A layman’s method of understanding normalization.
Chapter 7 1 Database Principles Data Normalization Primarily a tool to validate and improve a logical design so that it satisfies certain constraints that.
By Abdul Rashid Ahmad. E.F. Codd proposed three normal forms: The first, second, and third normal forms 1NF, 2NF and 3NF are based on the functional dependencies.
Lecture Nine: Normalization
Dr. Mohamed Osman Hegaz1 Logical data base design (2) Normalization.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 4/1 Copyright © 2004 Please……. No Food Or Drink in the class.
9/23/2012ISC329 Isabelle Bichindaritz1 Normalization.
Normalization. 2 u Main objective in developing a logical data model for relational database systems is to create an accurate representation of the data,
Chapter 5.1 and 5.2 Brian Cobarrubia Database Management Systems II January 31, 2008.
Logical Database Design and the Relational Model.
11/10/2009GAK1 Normalization. 11/10/2009GAK2 Learning Objectives Definition of normalization and its purpose in database design Types of normal forms.
NormalisationNormalisation Normalization is the technique of organizing data elements into records. Normalization is the technique of organizing data elements.
Normalization ACSC 425 Database Management Systems.
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
1 CS490 Database Management Systems. 2 CS490 Database Normalization.
Normal Forms 1NF – A table that qualifies as a relation is in 1NF. (Back)(Back) 2NF – A relation is in 2NF if all of its nonkey attributes are dependent.
4TH NORMAL FORM By: Karen McVay.
Chapter 8: Object-Relational Modeling
Normalization.
COP 6726: New Directions in Database Systems
CSIS 115 Database Design and Applications for Business
SEEM3430: Information Systems Analysis and Design
Normalization Karolina muszyńska
Announcements Read 5.1 – 5.5 for today Read 5.6 – 5.7 for Wednesday
A brief summary of database normalization
Chapter 5: Logical Database Design and the Relational Model
Functional Dependencies
Payroll Management System
Normalization Refine data To attain a good DB design
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases.
The Relational Model and Normalization
Relational Model and ER Model: in a Nutshell
Database Normalization
Chapter 6 Normalization of Database Tables
System Analysis and Design
Chapter 4.1 V3.0 Napier University Dr Gordon Russell
Database solutions The process of normalization Marzena Nowakowska Faculty of Management and Computer Modelling Kielce University of Technology rooms:
Normalization.
4 Normal Form.
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
1st, 2nd, and 3rd Normal Forms
Normalization February 28, 2019 DB:Normalization.
Sampath Jayarathna Cal Poly Pomona
Sampath Jayarathna Cal Poly Pomona
Database Normalization.
Database Normalization.
Chapter 4 The Relational Model and Normalization
Database Management System
Normalisation 1 Unit 3.1 Dr Gordon Russell, Napier University
Presentation transcript:

Perancangan Basis Data Understanding Normalization

Establishing a Business Model What Is Normalization? 1st Normal Form (1NF) 2nd Normal Form (2NF) 3rd Normal Form (3NF) Beyond 3rd Normal Form (3NF) 26/04/2018

What Is Normalization? 26/04/2018

What Is Normalization? In general, normalization removes duplication and minimizes redundant of data. The problem with the academic approach to normalization is that it seems to insist on always expecting a designer to apply every Normal Form layer in every situation 26/04/2018

The Concept of Anomalies Insert anomaly Caused when a record is added to a detail table, with no related record existing in a master table. tabel_jurusan tabel_fakultas kode_fakultas nama_fakultas FAK01 Teknik FAK02 Ekonomi kode_jurusan nama_jurusan kode_fakultas JUR01 Sistem Informasi FAK01 JUR02 Teknik Informatika JUR03 Akuntansi FAK02 Insert JUR04 Ilmu Komunikasi FAK03 26/04/2018

The Concept of Anomalies Delete anomaly Caused when a record is deleted from a master table, without first deleting all sibling records, in a detail table. tabel_jurusan tabel_fakultas kode_fakultas nama_fakultas FAK01 Teknik FAK02 Ekonomi kode_jurusan nama_jurusan kode_fakultas JUR01 Sistem Informasi FAK01 JUR02 Teknik Informatika JUR03 Akuntansi FAK02 ? 26/04/2018

Dependency, Determinants, and Other Jargon Functional dependency Y is functionally dependent on X if the value of Y is determined by X. Determinants The determinant in the description of functional dependency in the previous point is X because X determines the value Y, at least partially because 1 is added to X as well. tabel_fakultas kode_fakultas nama_fakultas FAK01 Teknik FAK02 Ekonomi FAK01 Determines that the faculty name is Teknik Ekonomi is dependant on the code being FAK02 26/04/2018

Dependency, Determinants, and Other Jargon Transitive dependency Z is transitively dependent on X when X determines Y and Y determines Z. Transitive dependence thus describes that Z is indirectly dependent on X through its relationship with Y. Contoh : nim - > kode_jurusan kode_jurusan -> kode_fakultas Transitive : nim - > kode_fakultas nim kode_jurusan kode_fakultas 10510202 05 1 10910760 09 20210121 02 2 26/04/2018

Dependency, Determinants, and Other Jargon Full Functional dependency This situation occurs where X determines Y, but X combined with Z does not determine Y. In other words, Y depends on X and X alone. If Y depends on X with anything else, there is not full functional dependence. 26/04/2018

Dependency, Determinants, and Other Jargon Multiple valued dependency A commonly used example of a multi-valued dependency is a field containing a comma-delimited list or collection of some kind. 26/04/2018

Dependency, Determinants, and Other Jargon Cyclic dependency The meaning of the word “cyclic” is a circular pattern, recurrent, closed ring, or a circular chain structure. In other words, X relates to Y, Y relates to Z, and Z relates to X. 26/04/2018

Defining Normal Forms The Academic Way The following are the precise academic definitions of Normal Forms : 1st Normal Form (1NF) – atomic 2nd Normal Form (2NF) – All non-key values must be fully functionally dependent on the primary key. 3rd Normal Form (3NF) – Eliminate transitive dependencies, meaning that a field is indirectly determined by the primary key. Boyce Code Normal Form (BCNF) – Every determinant in a table is a candidate key. If there is only one candidate key, 3NF and BCNF are one and the same. 26/04/2018

Defining Normal Forms The Academic Way The following are the precise academic definitions of Normal Forms : 4th Normal Form (4NF) – Eliminate multiple sets of multivalued dependencies 5th Normal Form (5NF) – Eliminate cyclic dependencies. 5NF is also known as Projection Normal Form (PJNF). Domain Key Normal Form (DKNF) – DKNF is the ultimate application of normalization and is more a measurement of conceptual state, as opposed to a transformation process in itself. 26/04/2018