Database.

Slides:



Advertisements
Similar presentations
Functional dependencies 1. 2 Outline motivation: update anomalies cause: not expressed constraints on data (FDs) functional dependencies (FDs) definitions.
Advertisements

1 Term 2, 2004, Lecture 2, Normalisation - IntroductionMarian Ursu, Department of Computing, Goldsmiths College Normalisation Introduction.
Normalisation to 3NF Database Systems Lecture 11 Natasha Alechina.
1 Database Systems: A Practical Approach to Design, Implementation and Management International Computer Science S. Carolyn Begg, Thomas Connolly Lecture.
Boyce-Codd Normal Form Kelvin Nishikawa SE157a-03 Fall 2006 Kelvin Nishikawa SE157a-03 Fall 2006.
Normalization I.
Chapter 5 Normalization Transparencies © Pearson Education Limited 1995, 2005.
Chapter 14 Advanced Normalization Transparencies © Pearson Education Limited 1995, 2005.
Introduction to Schema Refinement. Different problems may arise when converting a relation into standard form They are Data redundancy Update Anomalies.
Daniel AdinugrohoDatabase Programming 1 DATABASE PROGRAMMING Lecture on 29 – 04 – 2005.
Chapter 4: Logical Database Design and the Relational Model (Part II)
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Normalization. 2 Objectives u Purpose of normalization. u Problems associated with redundant data. u Identification of various types of update anomalies.
NormalizationNormalization Chapter 4. Purpose of Normalization Normalization  A technique for producing a set of relations with desirable properties,
Concepts of Database Management, Fifth Edition
1 Pertemuan 23 Normalisasi Matakuliah: >/ > Tahun: > Versi: >
Lecture 6 Normalization: Advanced forms. Objectives How inference rules can identify a set of all functional dependencies for a relation. How Inference.
Lecture 1 of Advanced Databases Basic Concepts Instructor: Mr.Ahmed Al Astal.
Normalization Transparencies
CSC271 Database Systems Lecture # 28.
11/07/2003Akbar Mokhtarani (LBNL)1 Normalization of Relational Tables Akbar Mokhtarani LBNL (HENPC group) November 7, 2003.
Lecture 5 Normalization. Objectives The purpose of normalization. How normalization can be used when designing a relational database. The potential problems.
Chapter 10 Normalization Pearson Education © 2009.
Functional Dependencies. FarkasCSCE 5202 Reading and Exercises Database Systems- The Complete Book: Chapter 3.1, 3.2, 3.3., 3.4 Following lecture slides.
6-1 © Prentice Hall, 2007 Topic 6: Object-Relational Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
8-1 © Prentice Hall, 2007 Chapter 8: Object-Relational Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
Chapter 8 Relational Database Design. 2 Relational Database Design: Goals n Reduce data redundancy (undesirable replication of data values) n Minimize.
ITD1312 Database Principles Chapter 4C: Normalization.
Database Architecture Normalization. Purpose of Normalization A technique for producing a set of relations with desirable properties, given the data requirements.
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
Logical Database Design and Relational Data Model Muhammad Nasir
Chapter 8 Relational Database Design Topic 1: Normalization Chuan Li 1 © Pearson Education Limited 1995, 2005.
Chapter 8: Object-Relational Modeling
Normalization.
COP 6726: New Directions in Database Systems
Advanced Normalization
CS422 Principles of Database Systems Normalization
Normalization Karolina muszyńska
Normalization DBMS.
A brief summary of database normalization
Chapter 5: Logical Database Design and the Relational Model
CS411 Database Systems 08: Midterm Review Kazuhiro Minami 1.
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases.
CS422 Principles of Database Systems Normalization
Payroll Management System
Advanced Normalization
Database Normalization
Relational Database.
Database Normalization
Schema Refinement What and why
Normalization Murali Mani.
Functional Dependencies and Normalization
Chapter 14 Normalization – Part I Pearson Education © 2009.
Normalization Dale-Marie Wilson, Ph.D..
Normalization.
Functional Dependencies
Normalisation to 3NF.
Minggu 9, Pertemuan 18 Normalization
Normalization cs3431.
Instructor: Mohamed Eltabakh
Normalization February 28, 2019 DB:Normalization.
國立臺北科技大學 課程:資料庫系統 2015 fall Chapter 14 Normalization.
Relational Database Design
Chapter 19 (part 1) Functional Dependencies
Designing Relational Databases
Relational Database Design
Chapter 7 Normalization Chapter 14 & 15 in Textbook.
Terminology Product Attribute names Name Price Category Manufacturer
CSC 453 Database Systems Lecture
Chapter 3: Multivalued Dependencies
Presentation transcript:

Database

Relational Database Design This chapter explores relational database design concepts that will help model the real-world enterprise in a relational database. It provides guidelines to define tables, columns, and establish relationships between tables so that there is minimum redundancy of data.

The problem of redundancy Data redundancy implies finding the same data in more than one location within database tables. Redundancy in a relational schema is a non-optimal relational database design because of the following problems:  Insertion Anomalies  Deletion Anomalies  Update Anomalies

Decompositions Decomposition in relational database design implies breaking down a relational schema into smaller and simpler relations that avoid redundancy. The idea is to be able to query the smaller relations for any information that we were previously able to retrieve from the original relational schema.

Functional Dependencies Functional Dependency (FD) is a type of integrity constraint that extends the idea of a super key. It defines a dependency between subsets of attributes of a given relation.

Properties of Functional Dependencies 1. Reflexivity: If B is a subset of attributes in set A, then A → B. (by trivial FD) 2. Augmentation: If A → B and C is another attribute, then AC → BC Applying reflexivity to this rule, we can also say that, AC → B. 3. Transitivity: If A → B and B → C, then A → C.

Normal Forms Normalization is a procedure in relational database design that aims at converting relational schemas into a more desirable form. The goal is to remove redundancy in relations and the problems that follow from it, namely insertion, deletion and update anomalies.

A table is in 1NF if and only if it satisfies the following five conditions: • There is no top-to-bottom ordering to the rows. • There is no left-to-right ordering to the columns. • There are no duplicate rows. • Every row-and-column intersection contains exactly one value from the applicable domain (and nothing else). • All columns are regular [i.e. rows have no hidden components such as row IDs, object IDs, or hidden timestamps].