FIT1004 Database Topic 6: Normalisation

Size: px
Start display at page:

Download "FIT1004 Database Topic 6: Normalisation"

Transcription

1 FIT1004 Database Topic 6: Normalisation Learning Objectives: Understand the purpose of normalisation Understand the problems associated with redundant data Identify various types of update anomalies such as insertion, deletion, and modification anomalies Recognise the appropriateness or quality of the design of relations Identify various types of functional dependencies between attributes Understand how functional dependencies can be used to group attributes into relations that are in a known normal form Identify the most commonly used normal forms, namely 1NF, 2NF and 3NF Perform normalisation Understand various ways to refine 3NF relations to achieve better database design Produce an ER diagram from the derived set of 3NF relations References: Rob, P. & Coronel, C., Database Systems, 6 th Edition, Chapt. 5, p , 7 th Edition, Chapt. 5, p

2 Where are we? Introduction to Database Systems The Relational Model Database Lifecycle Conceptual Design Logical Design Normalisation Physical Design Implementation SQL (DML) SQL (DDL & DCL) Transaction Management Database Administration Data Warehousing & Data Mining 2

3 Normalisation Normalisation is a technique for producing a set of relations with desirable properties, given the data requirements of an enterprise: Developed by E.F. Codd (1972) Often performed as a series of tests on a relation to determine whether it satisfies or violates the requirements of a given normal form Four most commonly used normal forms are: First (1NF), Second (2NF), Third (3NF) normally sufficient point, and Boyce-Codd (BCNF) 4NF,. etc (required by some very specialised applications) Based on functional dependencies among the attributes of a relation Major aim of relational database design is to group attributes into relations to minimise data redundancy and reduce file storage space required by base relations 3

4 Why Normalisation is required Note * signifies Project Leader 4

5 Problems with table in Figure 5.1 PROJ_NUM intended to be primary key, but it contains nulls JOB_CLASS invites entry errors eg. Elec. Eng. vs Elect. Engineer vs E.E. Project relation has redundant data details of a charge per hour are repeated for every occurrence of job class Every time an employee is assigned to a project emp name repeated Relations that contain redundant information may potentially suffer from update anomalies Types of update anomalies include: > Insertion Insert a new employee only if they are assigned to a project > Deletion Delete the last employee assigned to a project? Delete the last employee of a particular job class? > Modification Update a job class hourly rate - need to update multiple rows 5

6 Functional Dependence An attribute B is FUNCTIONALLY DEPENDENT on another attribute A, if a value of A determines a single value of B at any one time. A B EMP# EMP_NAME CUSTNUMB CUSTNAME ORDER-NUMBER ORDER-DATE > ORDER-NUMBER - independent variable, also know as DETERMINANT > ORDER-DATE - dependant variable TOTAL DEPENDENCY attribute A determines B AND attribute B determines A > EMPLOYEE-NUMBER TAX-FILE-NUMBER 6

7 Functional Dependence FULL DEPENDENCY occurs when an attribute is always dependant on AT LEAST TWO other attributes ORDER-NUMBER, PART-NUMBER QTY-ORDERED lack of full dependence for multiple attribute key = partial dependence TRANSITIVE DEPENDENCY occurs when Y depends on X, and Z depends on Y - thus Z also depends on X > X Y Z INVOICE-NUMB CUSTOMER-NUMB CUSTOMER-NAME Dependencies are depicted with the help of a Dependency Diagram NORMALISATION - SIMPLY 'COMMON SENSE' Converts a table into tables of progressively smaller degree and cardinality until an optimum level of decomposition is reached - little or no data redundancy exists 7

8 First Normal Form Positive results from normalisation - amount of space needed to store data will be lower table can be updated with greater efficiency description of database will be straightforward Unnormalised form (UNF) raw data from table/form/grid UNF: PROJECT (proj_num, proj_name (emp_num, emp_name,.)) Figure 5.1 consists of a set of projects with each project having a set of project-employee details (model 1) FIRST NORMAL FORM (part of formal definition of relation) A TABLE IS IN FIRST NORMAL FORM (1NF) IF - > it is a valid table (in particular no repeating groups) > a unique key has been identified for each row > all attributes are functionally dependant on all or part of the key 1NF: PROJECT (proj_num, proj_name) 1NF: ASSIGN (proj_num, emp_num, emp_name, job_class, chg_hour, assign_hours) 8

9 UNF to 1NF transformation Identify the repeating group(s), if any, in the unnormalised relation Move from UNF to 1NF by removing repeating group along with the PK of the main relation Important property of normalisation decomposition Lossless-join property enables us to find any instance of the original relation from corresponding instances in the smaller relations hence must extract PK of main relation Determine PK of new relations created extracted repeating group will normally have a composite PK including the main relations PK > but NOT always, PK of main relation may simply act as a FK INSURED (comp_code, comp_name (insured_id, insured_name,..))» COMPANY (comp_code, comp_name)» INSURED (insured_id, comp_code,insured_name,..) 9

10 First Normal Form continued An alternative way (model 2) of looking at this scenario Present data in tabular format, where each cell has single value and there are no repeating groups Eliminate repeating groups, eliminate nulls by making sure that each repeating group attribute contains an appropriate data value 10

11 Model 2: Dependency Diagram (1NF) 11

12 1NF to 2NF A RELATION IS IN 2NF IF - all non key attributes are functionally dependent on the entire key > ie. no partial dependencies exist Model 1: Move from 1NF to 2NF by removing partial dependencies 1NF: PROJECT (proj_num, proj_name) 1NF: ASSIGN (proj_num, emp_num, emp_name, job_class, chg_hour, assign_hours) 1NF: PROJECT (proj_num, proj_name) already in 2NF only one attribute in PK thus CANNOT be any partial dependencies > 2NF: PROJECT (proj_num, proj_name) 1NF: ASSIGN (proj_num, emp_num, emp_name, job_class, chg_hour, assign_hours) becomes > 2NF EMPLOYEE (emp_num, emp_name, job_class, chg_hour) > 2NF ASSIGN (proj_num, emp_num, assign_hours) 12

13 2NF Conversion Results (Model 1 & 2) Note Model 1 & 2 now equivalent 13

14 2NF to 3NF A RELATION IS IN 3NF IF - all transitive dependencies have been removed - check for non key attribute dependant on another non key attribute Move from 2NF to 3NF by removing transitive dependencies 2NF: PROJECT (proj_num, proj_name) 2NF EMPLOYEE (emp_num, emp_name, job_class, chg_hour) 2NF ASSIGN (proj_num, emp_num, assign_hours) PROJECT and ASSIGN already in 3NF 3NF: PROJECT (proj_num, proj_name) 3NF ASSIGN (proj_num, emp_num, assign_hours) 2NF EMPLOYEE (emp_num, emp_name, job_class, chg_hour) 3NF EMPLOYEE (emp_num, emp_name, job_class) 3NF JOB (job_class, chg_hour) 14

15 3NF Conversion Results 15

16 Improving the Design To improve the design of the database the following changes could be made: PK assignment Naming conventions Attribute atomicity Adding attributes Adding relationships Refining PKs Maintaining historical accuracy Using derived attributes 16

17 Improving the Design continued Returning to Table 5.1 (slide 4) Data loss who is the project leader? > modify project (R&C approach) 3NF: PROJECT (proj_num, proj_name, emp_num) > Alternative, add emp_num at UNF > Do not use synonyms when naming attributes always use the same name for the same attribute eg. Do not make emp_num in PROJECT leader_num JOB (job_class, chg_hour) > Job_class is a string eg. Systems Analyst Redundant data with associated issues, poor PK Better to create job code > modify job (R&C approach) 3NF JOB (job_code, job_description, job_chg_hour) > Alternative, make changes at UNF 17

18 Completed Database 18

19 Completed Database continued 19

20 Entire Process UNF to 3NF UNF PROJECT (proj_num, proj_name, emp_num (emp_num, emp_name, job_code, job_description, job_chg_hour, assign_hours)) 1NF remove repeating group and identify PK PROJECT (proj_num, proj_name, emp_num) ASSIGN (proj_num, emp_num, emp_name, job_code, job_description, job_chg_hour, assign_hours) 2NF remove partial dependencies PROJECT (proj_num, proj_name, emp_num) EMPLOYEE (emp_num, emp_name, job_code, job_description, job_chg_hour) ASSIGN (proj_num, emp_num, assign_hours) 3NF remove transitive dependencies PROJECT (proj_num, proj_name, emp_num) EMPLOYEE (emp_num, emp_name, job_code) ASSIGN (proj_num, emp_num, assign_hours) JOB (job_code, job_description, job_chg_hour) Note R&C show some further 'suggested' improvements 20

21 Normalisation presented as a Conceptual ERD 21

22 Normalisation presented as a Logical ERD 22

23 Normalisation and Database Design Normalisation should be part of design process Make sure that proposed entities meet required normal form before table structures are created ER diagram Provides the big picture, or macro view, of an organization s data requirements and operations Created through an iterative process > Identifying relevant entities, their attributes and their relationship > Use results to identify additional entities and attributes normalisation procedures Focus on the characteristics of specific entities A micro view of the entities within the ER diagram Difficult to separate normalisation process from ER modeling process Two techniques should be used concurrently 23

24 Normalisation and ER Diagrams ER Diagramming Top down approach Fast Examine requirements Business knowledge Normalisation Bottom up approach Very slow Examine existing data Mathematically based Top down create - bottom up checking Accuracy Greater understanding of the data 24

25 Summary This lecture Understand the purpose of normalisation Understand the problems associated with redundant data Identify various types of update anomalies such as insertion, deletion, and modification anomalies Recognise the appropriateness or quality of the design of relations Identify various types of functional dependencies between attributes Understand how functional dependencies can be used to group attributes into relations that are in a known normal form Identify the most commonly used normal forms, namely 1NF, 2NF and 3NF Perform normalisation Understand various ways to refine 3NF relations to achieve better database design Produce an ER diagram from the derived set of 3NF relations Next lecture Structured Query Language (SQL) - DML 25

E-R Modeling: Table Normalization

E-R Modeling: Table Normalization E-R Modeling: Table Normalization Normalization Normalization of DB Tables Process for evaluating and correcting table structures determines the optimal assignments of attributes to entities Normalization

More information

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 6 Normalization of Database Tables

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 6 Normalization of Database Tables Database Systems: Design, Implementation, and Management Tenth Edition Chapter 6 Normalization of Database Tables Objectives In this chapter, students will learn: What normalization is and what role it

More information

1. Heading 1. Normalisation LEARNING OBJECTIVES. Study Guide. On completion of this session you will be able to:

1. Heading 1. Normalisation LEARNING OBJECTIVES. Study Guide. On completion of this session you will be able to: 1. Heading 1 Normalisation Study Guide 6 LEARNING OBJECTIVES On completion of this session you will be able to: Understand the purpose of normalisation Understand the problems associated with redundant

More information

The strategy for achieving a good design is to decompose a badly designed relation appropriately.

The strategy for achieving a good design is to decompose a badly designed relation appropriately. The strategy for achieving a good design is to decompose a badly designed relation appropriately. Functional Dependencies The single most important concept in relational schema design theory is that of

More information

DATABASE (2) NORMALIZATION

DATABASE (2) NORMALIZATION DATABASE (2) NORMALIZATION M. Rasti-Barzoki Website: Application of a number of rules to the relational model which will simplify the relations. Avoid common database problems Make the data as tightly

More information

IS 263 Database Concepts

IS 263 Database Concepts IS 263 Database Concepts Lecture 4: Normalization Instructor: Henry Kalisti 1 Department of Computer Science and Engineering Limitations of E- R Designs Provides a set of guidelines, does not result in

More information

Database Management Systems

Database Management Systems Database Management Systems Associate Professor Dr. Raed Ibraheem Hamed University of Human Development, College of Science and Technology Computer Science Department 2015 2016 Department of Computer Science

More information

Data about data is database Select correct option: True False Partially True None of the Above

Data about data is database Select correct option: True False Partially True None of the Above Within a table, each primary key value. is a minimal super key is always the first field in each table must be numeric must be unique Foreign Key is A field in a table that matches a key field in another

More information

Review -Chapter 4. Review -Chapter 5

Review -Chapter 4. Review -Chapter 5 Review -Chapter 4 Entity relationship (ER) model Steps for building a formal ERD Uses ER diagrams to represent conceptual database as viewed by the end user Three main components Entities Relationships

More information

Normalisation. Normalisation. Normalisation

Normalisation. Normalisation. Normalisation Normalisation Normalisation Main objective in developing a logical data model for relational database systems is to create an accurate and efficient representation of the data, its relationships, and constraints

More information

Steps in normalisation. Steps in normalisation 7/15/2014

Steps in normalisation. Steps in normalisation 7/15/2014 Introduction to normalisation Normalisation Normalisation = a formal process for deciding which attributes should be grouped together in a relation Normalisation is the process of decomposing relations

More information

FIT1004 Database Topic 2: Database Design Life Cycle

FIT1004 Database Topic 2: Database Design Life Cycle FIT1004 Database Topic 2: Database Design Life Cycle Learning Objectives: Describe the 3 level ANSI SPARC Database Architecture and the advantages which its inherent data abstraction provide to the database

More information

CMP-3440 Database Systems

CMP-3440 Database Systems CMP-3440 Database Systems Logical Design Lecture 03 zain 1 Database Design Process Application 1 Conceptual requirements Application 1 External Model Application 2 Application 3 Application 4 External

More information

Techno India Batanagar Computer Science and Engineering. Model Questions. Subject Name: Database Management System Subject Code: CS 601

Techno India Batanagar Computer Science and Engineering. Model Questions. Subject Name: Database Management System Subject Code: CS 601 Techno India Batanagar Computer Science and Engineering Model Questions Subject Name: Database Management System Subject Code: CS 601 Multiple Choice Type Questions 1. Data structure or the data stored

More information

Database Tables and Normalization

Database Tables and Normalization Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 9 Normalizing Database Designs (NORMALIZATION) MDM NUR RAZIA BINTI MOHD SURADI 019-3932846 razia@unisel.edu.my

More information

Course Outline Faculty of Computing and Information Technology

Course Outline Faculty of Computing and Information Technology Course Outline Faculty of Computing and Information Technology Title Code Instructor Name Credit Hours Prerequisite Prerequisite Skill/Knowledge/Understanding Category Course Goals Statement of Course

More information

Learning outcomes. On successful completion of this unit you will: 1. Understand data models and database technologies.

Learning outcomes. On successful completion of this unit you will: 1. Understand data models and database technologies. 2015-2016 Phil Smith Learning outcomes On successful completion of this unit you will: 1. Understand data models and database technologies. (Assignment 1) Recap and setting the scene Before we get to Normalisation

More information

More examples on Normalization

More examples on Normalization More examples on Normalization 1 Unnormalized form to 1NF Category Product Category Product Fruit Apple, Orange, Banna Fruit Apple Drink Cola, Water, Beer, Juice Fruit Orange Fruit Banana Unnormalized

More information

8) A top-to-bottom relationship among the items in a database is established by a

8) A top-to-bottom relationship among the items in a database is established by a MULTIPLE CHOICE QUESTIONS IN DBMS (unit-1 to unit-4) 1) ER model is used in phase a) conceptual database b) schema refinement c) physical refinement d) applications and security 2) The ER model is relevant

More information

Detailed Data Modelling. Detailed Data Modelling. Detailed Data Modelling. Identifying Attributes. Attributes

Detailed Data Modelling. Detailed Data Modelling. Detailed Data Modelling. Identifying Attributes. Attributes IMS1002 /CSE1205 Systems Analysis and Design Detailed Data Modelling The objective of detailed data modelling is to develop a detailed data structure that: Detailed Data Modelling: Attribute Collection

More information

Distributed Database Systems By Syed Bakhtawar Shah Abid Lecturer in Computer Science

Distributed Database Systems By Syed Bakhtawar Shah Abid Lecturer in Computer Science Distributed Database Systems By Syed Bakhtawar Shah Abid Lecturer in Computer Science 1 Distributed Database Systems Basic concepts and Definitions Data Collection of facts and figures concerning an object

More information

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 9 Normalizing Database Designs

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 9 Normalizing Database Designs Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 9 Normalizing Database Designs NORMALIZATION What is normalization? Normalization is a procedure that is

More information

CS403- Database Management Systems Solved MCQS From Midterm Papers. CS403- Database Management Systems MIDTERM EXAMINATION - Spring 2010

CS403- Database Management Systems Solved MCQS From Midterm Papers. CS403- Database Management Systems MIDTERM EXAMINATION - Spring 2010 CS403- Database Management Systems Solved MCQS From Midterm Papers April 29,2012 MC100401285 Moaaz.pk@gmail.com Mc100401285@gmail.com PSMD01 CS403- Database Management Systems MIDTERM EXAMINATION - Spring

More information

Department of Information Technology B.E/B.Tech : CSE/IT Regulation: 2013 Sub. Code / Sub. Name : CS6302 Database Management Systems

Department of Information Technology B.E/B.Tech : CSE/IT Regulation: 2013 Sub. Code / Sub. Name : CS6302 Database Management Systems COURSE DELIVERY PLAN - THEORY Page 1 of 6 Department of Information Technology B.E/B.Tech : CSE/IT Regulation: 2013 Sub. Code / Sub. Name : CS6302 Database Management Systems Unit : I LP: CS6302 Rev. :

More information

Normalization in DBMS

Normalization in DBMS Unit 4: Normalization 4.1. Need of Normalization (Consequences of Bad Design-Insert, Update & Delete Anomalies) 4.2. Normalization 4.2.1. First Normal Form 4.2.2. Second Normal Form 4.2.3. Third Normal

More information

Detailed Data Modelling: Attribute Collection and Normalisation of Data

Detailed Data Modelling: Attribute Collection and Normalisation of Data Detailed Data Modelling IMS1002 /CSE1205 Systems Analysis and Design Detailed Data Modelling: Attribute Collection and Normalisation of Data The objective of detailed data modelling is to develop a detailed

More information

Chapter 1 SQL and Data

Chapter 1 SQL and Data Chapter 1 SQL and Data What is SQL? Structured Query Language An industry-standard language used to access & manipulate data stored in a relational database E. F. Codd, 1970 s IBM 2 What is Oracle? A relational

More information

ACS-2914 Normalization March 2009 NORMALIZATION 2. Ron McFadyen 1. Normalization 3. De-normalization 3

ACS-2914 Normalization March 2009 NORMALIZATION 2. Ron McFadyen 1. Normalization 3. De-normalization 3 NORMALIZATION 2 Normalization 3 De-normalization 3 Functional Dependencies 4 Generating functional dependency maps from database design maps 5 Anomalies 8 Partial Functional Dependencies 10 Transitive

More information

Redundancy:Dependencies between attributes within a relation cause redundancy.

Redundancy:Dependencies between attributes within a relation cause redundancy. Normalization Normalization: It is the process of removing redundant data from your tables in order to improve storage efficiency, data integrity and scalability. This improvement is balanced against an

More information

DATABASE MANAGEMENT SYSTEM SHORT QUESTIONS. QUESTION 1: What is database?

DATABASE MANAGEMENT SYSTEM SHORT QUESTIONS. QUESTION 1: What is database? DATABASE MANAGEMENT SYSTEM SHORT QUESTIONS Complete book short Answer Question.. QUESTION 1: What is database? A database is a logically coherent collection of data with some inherent meaning, representing

More information

Introduction to MS Access: creating tables, keys, and relationships

Introduction to MS Access: creating tables, keys, and relationships Introduction to MS Access: creating tables, keys, and relationships BSAD 141 Dave Novak Topics Covered Brief introduction to MS Access Name and save a DB file Create tables and keys Create and enforce

More information

Chapter 3. The Relational database design

Chapter 3. The Relational database design Chapter 3 The Relational database design Chapter 3 - Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical relations and relations in the relational

More information

Database Foundations. 3-9 Validating Data Using Normalization. Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Database Foundations. 3-9 Validating Data Using Normalization. Copyright 2015, Oracle and/or its affiliates. All rights reserved. Database Foundations 3-9 Roadmap Conceptual and Physical Data Models Business Rules Entities Attributes Unique Identifiers Relationships Validating Relationships Tracking Data Changes over Time Validating

More information

Bachelor in Information Technology (BIT) O Term-End Examination

Bachelor in Information Technology (BIT) O Term-End Examination No. of Printed Pages : 6 I CSI-14 I Bachelor in Information Technology (BIT) O Term-End Examination cn Cn1 June, 2010 CD cp CSI-14 : DATA ANALYSIS AND DATABASE DESIGN Time : 3 hours Maximum Marks : 75

More information

Normalisation. Connolly, Ch. 13

Normalisation. Connolly, Ch. 13 Normalisation Connolly, Ch. 13 1 Overview Normalisation Steps 1NF Removing repeating groups 2NF Partial dependencies Removing partial dependencies 3NF Transitive dependencies Removing transitive dependencies

More information

MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: Time: 60 min Marks: 38

MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: Time: 60 min Marks: 38 Student Info StudentID: Center: ExamDate: MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: 1356458 Time: 60 min Marks: 38 BC080402322 OPKST 5/28/2010 12:00:00 AM

More information

Normalisation Chapter2 Contents

Normalisation Chapter2 Contents Contents Objective... 64 Superkey & Candidate Keys... 65 Primary, Alternate and Foreign Keys... 65 Functional Dependence... 67 Using Instances... 70 Normalisation Introduction... 70 Normalisation Problems...

More information

Normalization. Murali Mani. What and Why Normalization? To remove potential redundancy in design

Normalization. Murali Mani. What and Why Normalization? To remove potential redundancy in design 1 Normalization What and Why Normalization? To remove potential redundancy in design Redundancy causes several anomalies: insert, delete and update Normalization uses concept of dependencies Functional

More information

Normalization Normalization

Normalization Normalization Normalization Normalization We discuss four normal forms: first, second, third, and Boyce-Codd normal forms 1NF, 2NF, 3NF, and BCNF Normalization is a process that improves a database design by generating

More information

UGC NET - COMPUTER SCIENCE

UGC NET - COMPUTER SCIENCE UGC NET - COMPUTER SCIENCE SAMPLE THEORY RELATIONAL DATABASE DESIGN NORMALIZATION For IIT-JAM, JNU, GATE, NET, NIMCET and Other Entrance Exams 1-C-8, Sheela Chowdhary Road, Talwandi, Kota (Raj.) Tel No.

More information

CS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam

CS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam CS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam Question No: 1 ( Marks: 1 ) - Please choose one Which of the following is NOT a feature of Context DFD?

More information

Normalization (1) IT 5101 Introduction to Database Systems. J.G. Zheng Fall 2011

Normalization (1) IT 5101 Introduction to Database Systems. J.G. Zheng Fall 2011 Normalization (1) IT 5101 Introduction to Database Systems J.G. Zheng Fall 2011 Overview What is normalization? What are the normal forms? How to normalize relations? 2 Two Basic Ways To Design Tables

More information

Edited by: Nada Alhirabi. Normalization

Edited by: Nada Alhirabi. Normalization Edited by: Nada Alhirabi Normalization Normalization:Why do we need to normalize? 1. To avoid redundancy (less storage space needed, and data is consistent) Ssn c-id Grade Name Address 123 cs331 A smith

More information

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Winter 2009 Lecture 4 - Schema Normalization

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Winter 2009 Lecture 4 - Schema Normalization CSE 544 Principles of Database Management Systems Magdalena Balazinska Winter 2009 Lecture 4 - Schema Normalization References R&G Book. Chapter 19: Schema refinement and normal forms Also relevant to

More information

Normalization and Functional Dependencies. CS6302 Database management systems T.R.Lekhaa, AP/IT

Normalization and Functional Dependencies. CS6302 Database management systems T.R.Lekhaa, AP/IT Normalization and Functional Dependencies Normalization Normalization There are fournormal forms: first, second, third, and Boyce-Codd normal forms 1NF, 2NF, 3NF, and BCNF Normalization is a process that

More information

CS403 - Database Management Systems Short Notes

CS403 - Database Management Systems Short Notes http://vustudents.ning.com CS403 - Database Management Systems Short Notes By http://vustudents.ning.com Atomicity: Atomicity states that database modifications must follow an "all or nothing" rule. Each

More information

Dependency Diagram To Meet The 3nf

Dependency Diagram To Meet The 3nf Write The Relational Schema And Draw The Dependency Diagram To Meet The 3nf I need to draw relational schema and dependency diagram showing transitive and partial dependencies. Also it should meet 3rd

More information

NORMAL FORMS. CS121: Relational Databases Fall 2017 Lecture 18

NORMAL FORMS. CS121: Relational Databases Fall 2017 Lecture 18 NORMAL FORMS CS121: Relational Databases Fall 2017 Lecture 18 Equivalent Schemas 2 Many different schemas can represent a set of data Which one is best? What does best even mean? Main goals: Representation

More information

Informal Design Guidelines for Relational Databases

Informal Design Guidelines for Relational Databases Outline Informal Design Guidelines for Relational Databases Semantics of the Relation Attributes Redundant Information in Tuples and Update Anomalies Null Values in Tuples Spurious Tuples Functional Dependencies

More information

Database Systems. Normalization Lecture# 7

Database Systems. Normalization Lecture# 7 Database Systems Normalization Lecture# 7 Lecture 7: Normalization Normalization (Brief Overview) Functional Dependencies and Keys 1 st Normal Form 2 nd Normal Form 3 rd Normal Form Class Activity 3 Normalization

More information

CS/B.Tech/CSE/New/SEM-6/CS-601/2013 DATABASE MANAGEMENENT SYSTEM. Time Allotted : 3 Hours Full Marks : 70

CS/B.Tech/CSE/New/SEM-6/CS-601/2013 DATABASE MANAGEMENENT SYSTEM. Time Allotted : 3 Hours Full Marks : 70 CS/B.Tech/CSE/New/SEM-6/CS-601/2013 2013 DATABASE MANAGEMENENT SYSTEM Time Allotted : 3 Hours Full Marks : 70 The figures in the margin indicate full marks. Candidates are required to give their answers

More information

Logical Database Design Normalization

Logical Database Design Normalization Chapter Four Logical Database Design Normalization Objectives Recalling Relational concepts Understand different anomalies and functional dependency concepts Use normalization to convert anomalous tables

More information

DATABASES SQL INFOTEK SOLUTIONS TEAM

DATABASES SQL INFOTEK SOLUTIONS TEAM DATABASES SQL INFOTEK SOLUTIONS TEAM TRAINING@INFOTEK-SOLUTIONS.COM Databases 1. Introduction in databases 2. Relational databases (SQL databases) 3. Database management system (DBMS) 4. Database design

More information

Schema And Draw The Dependency Diagram

Schema And Draw The Dependency Diagram Given That Information Write The Relational Schema And Draw The Dependency Diagram below, write the relational schema, draw its dependency diagram, and identify all You can assume that any given product

More information

DATABASE MANAGEMENT SYSTEM SUBJECT CODE: CE 305

DATABASE MANAGEMENT SYSTEM SUBJECT CODE: CE 305 DATABASE MANAGEMENT SYSTEM SUBJECT CODE: CE 305 Teaching Scheme (Credits and Hours) Teaching scheme Total Evaluation Scheme L T P Total Credit Theory Mid Sem Exam CIA Pract. Total Hrs Hrs Hrs Hrs Hrs Marks

More information

Normalization. VI. Normalization of Database Tables. Need for Normalization. Normalization Process. Review of Functional Dependence Concepts

Normalization. VI. Normalization of Database Tables. Need for Normalization. Normalization Process. Review of Functional Dependence Concepts VI. Normalization of Database Tables Normalization Evaluating and correcting relational schema designs to minimize data redundancies Reduces data anomalies Assigns attributes to tables based on functional

More information

MaanavaN.Com DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING QUESTION BANK

MaanavaN.Com DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING QUESTION BANK CS1301 DATABASE MANAGEMENT SYSTEM DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING QUESTION BANK Sub code / Subject: CS1301 / DBMS Year/Sem : III / V UNIT I INTRODUCTION AND CONCEPTUAL MODELLING 1. Define

More information

Database Design. SYS-ED / Computer Education Techniques, Inc. 1

Database Design. SYS-ED / Computer Education Techniques, Inc. 1 Database Design SYS-ED / Computer Education Techniques, Inc. 1 Purpose Optimal database design Selection of appropriate relations/tables for a given set of attributes. Minimize update anomalies Redundancy

More information

Chapter 10. Chapter Outline. Chapter Outline. Functional Dependencies and Normalization for Relational Databases

Chapter 10. Chapter Outline. Chapter Outline. Functional Dependencies and Normalization for Relational Databases Chapter 10 Functional Dependencies and Normalization for Relational Databases Chapter Outline 1 Informal Design Guidelines for Relational Databases 1.1Semantics of the Relation Attributes 1.2 Redundant

More information

BIRKBECK (University of London)

BIRKBECK (University of London) BIRKBECK (University of London) BSc Examination for Internal Students School of Computer Science and Information Systems Database Management COIY028U - Course Unit Value: 1/2 May 2006 : Afternoon 14.30

More information

Relational Database design. Slides By: Shree Jaswal

Relational Database design. Slides By: Shree Jaswal Relational Database design Slides By: Shree Jaswal Topics: Design guidelines for relational schema, Functional Dependencies, Definition of Normal Forms- 1NF, 2NF, 3NF, BCNF, Converting Relational Schema

More information

D.K.M COLLEGE FOR WOMEN(AUTONOMOUS),VELLORE DATABASE MANAGEMENT SYSTEM QUESTION BANK

D.K.M COLLEGE FOR WOMEN(AUTONOMOUS),VELLORE DATABASE MANAGEMENT SYSTEM QUESTION BANK D.K.M COLLEGE FOR WOMEN(AUTONOMOUS),VELLORE DATABASE MANAGEMENT SYSTEM QUESTION BANK UNIT I SECTION-A 2 MARKS 1. What is meant by DBMs? 2. Who is a DBA? 3. What is a data model?list its types. 4. Define

More information

CS6302 DBMS 2MARK & 16 MARK UNIT II SQL & QUERY ORTIMIZATION 1. Define Aggregate Functions in SQL? Aggregate function are functions that take a collection of values as input and return a single value.

More information

Lecture 5 STRUCTURED ANALYSIS. PB007 So(ware Engineering I Faculty of Informa:cs, Masaryk University Fall Bühnová, Sochor, Ráček

Lecture 5 STRUCTURED ANALYSIS. PB007 So(ware Engineering I Faculty of Informa:cs, Masaryk University Fall Bühnová, Sochor, Ráček Lecture 5 STRUCTURED ANALYSIS PB007 So(ware Engineering I Faculty of Informa:cs, Masaryk University Fall 2015 1 Outline ² Yourdon Modern Structured Analysis (YMSA) Context diagram (CD) Data flow diagram

More information

Teaching Scheme BIT/MMC/BCS Database Systems 1

Teaching Scheme BIT/MMC/BCS Database Systems 1 Teaching Scheme BIT/MMC/BCS Database Systems 1 Level : 1 Year : 2000 2001 Konstantina Lepinioti (tlepinio@bournemouth.ac.uk) Melanie Coles (mcoles@bournemouth.ac.uk) Autumn Term Week Lecture Seminar/Lab

More information

Chapter 14. Database Design Theory: Introduction to Normalization Using Functional and Multivalued Dependencies

Chapter 14. Database Design Theory: Introduction to Normalization Using Functional and Multivalued Dependencies Chapter 14 Database Design Theory: Introduction to Normalization Using Functional and Multivalued Dependencies Copyright 2012 Ramez Elmasri and Shamkant B. Navathe Chapter Outline 1 Informal Design Guidelines

More information

A7-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS

A7-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS A7-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be answered

More information

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management Tenth Edition Chapter 4 Entity Relationship (ER) Modeling Objectives In this chapter, students will learn: The main characteristics of entity relationship

More information

CMPE 131 Software Engineering. Database Introduction

CMPE 131 Software Engineering. Database Introduction Presented By Melvin Ch ng CMPE 131 Software Engineering September 14, 2017 Database Introduction Ruby on Rails ORM Agenda Database Management System (DBMS) SQL vs NoSQL Relational Database Introduction

More information

Relational Design: Characteristics of Well-designed DB

Relational Design: Characteristics of Well-designed DB 1. Minimal duplication Relational Design: Characteristics of Well-designed DB Consider table newfaculty (Result of F aculty T each Course) Id Lname Off Bldg Phone Salary Numb Dept Lvl MaxSz 20000 Cotts

More information

Normalisation theory

Normalisation theory Normalisation theory Introduction to Database Design 2012, Lecture 7 Challenging exercises E-R diagrams example Normalisation theory, motivation Functional dependencies Boyce-Codd normal form (BCNF) 3rd

More information

In This Lecture. Normalisation to BCNF. Lossless decomposition. Normalisation so Far. Relational algebra reminder: product

In This Lecture. Normalisation to BCNF. Lossless decomposition. Normalisation so Far. Relational algebra reminder: product In This Lecture Normalisation to BCNF Database Systems Lecture 12 Natasha Alechina More normalisation Brief review of relational algebra Lossless decomposition Boyce-Codd normal form (BCNF) Higher normal

More information

Course Logistics & Chapter 1 Introduction

Course Logistics & Chapter 1 Introduction CMSC 461, Database Management Systems Spring 2018 Course Logistics & Chapter 1 Introduction These slides are based on Database System Concepts book th edition, and the 2009 CMSC 461 slides by Dr. Kalpakis

More information

DATABASE MANAGEMENT SYSTEM

DATABASE MANAGEMENT SYSTEM DATABASE MANAGEMENT SYSTEM For COMPUTER SCIENCE DATABASE MANAGEMENT. SYSTEM SYLLABUS ER model. Relational model: relational algebra, tuple calculus, SQL. Integrity constraints, normal forms. File organization,

More information

SYED AMMAL ENGINEERING COLLEGE

SYED AMMAL ENGINEERING COLLEGE CS6302- Database Management Systems QUESTION BANK UNIT-I INTRODUCTION TO DBMS 1. What is database? 2. Define Database Management System. 3. Advantages of DBMS? 4. Disadvantages in File Processing System.

More information

Solved MCQ on fundamental of DBMS. Set-1

Solved MCQ on fundamental of DBMS. Set-1 Solved MCQ on fundamental of DBMS Set-1 1) Which of the following is not a characteristic of a relational database model? A. Table B. Tree like structure C. Complex logical relationship D. Records 2) Field

More information

1D D0-541 CIW v5 Database Design Specialist Version 1.7

1D D0-541 CIW v5 Database Design Specialist Version 1.7 1D0-541 CIW v5 Database Design Specialist Version 1.7 QUESTION NO: 1 With regard to databases, what is normalization? A. The process of reducing the cardinality of a relation B. The process of organizing

More information

Normalization. Un Normalized Form (UNF) Share. Download the pdf version of these notes.

Normalization. Un Normalized Form (UNF) Share. Download the pdf version of these notes. Normalization Share Download the pdf version of these notes. While designing a database out of an entity relationship model, the main problem existing in that raw database is redundancy. Redundancy is

More information

Database Management System Prof. Partha Pratim Das Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur

Database Management System Prof. Partha Pratim Das Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Database Management System Prof. Partha Pratim Das Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture - 19 Relational Database Design (Contd.) Welcome to module

More information

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 7 Data Modeling with Entity Relationship Diagrams Objectives In this chapter, students will learn: The

More information

Vendor: CIW. Exam Code: 1D Exam Name: CIW v5 Database Design Specialist. Version: Demo

Vendor: CIW. Exam Code: 1D Exam Name: CIW v5 Database Design Specialist. Version: Demo Vendor: CIW Exam Code: 1D0-541 Exam Name: CIW v5 Database Design Specialist Version: Demo QUESTION: 1 With regard to databases, what is normalization? A. The process of reducing the cardinality of a relation

More information

Home Page. Title Page. Page 1 of 14. Go Back. Full Screen. Close. Quit

Home Page. Title Page. Page 1 of 14. Go Back. Full Screen. Close. Quit Page 1 of 14 A BCNF Normalisation Algorithm Input: A specification containing: 1. a relation schema, R, and 2. a set of Functional Dependencies (FDs), F over R. An Entity-relationship Diagram (ERD) conforming

More information

Data Modelling. Static Data in the organisation Fundamental building block of the system Two perspectives (Process and Data) Of Data.

Data Modelling. Static Data in the organisation Fundamental building block of the system Two perspectives (Process and Data) Of Data. Content IMS 5024 Second assignment Nature of data modelling Tools/Techniques used in data modelling Place in ISD Evaluation of data modelling Reading list Data Modelling 2 Assignment 2 OO modelling Assignment

More information

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Fall 2009 Lecture 3 - Schema Normalization

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Fall 2009 Lecture 3 - Schema Normalization CSE 544 Principles of Database Management Systems Magdalena Balazinska Fall 2009 Lecture 3 - Schema Normalization References R&G Book. Chapter 19: Schema refinement and normal forms Also relevant to this

More information

4. Entity Relationship Model

4. Entity Relationship Model 4. Entity Relationship Model a) ER-Model: Used to construct conceptual data model, representing the structure and constraints of a database, which is not dependent on a software (like DBMS) or any data

More information

Lecture5 Functional Dependencies and Normalization for Relational Databases

Lecture5 Functional Dependencies and Normalization for Relational Databases College of Computer and Information Sciences - Information Systems Dept. Lecture5 Functional Dependencies and Normalization for Relational Databases Ref. Chapter14-15 Prepared by L. Nouf Almujally & Aisha

More information

Functional Dependencies and. Databases. 1 Informal Design Guidelines for Relational Databases. 4 General Normal Form Definitions (For Multiple Keys)

Functional Dependencies and. Databases. 1 Informal Design Guidelines for Relational Databases. 4 General Normal Form Definitions (For Multiple Keys) 1 / 13 1 Informal Design Guidelines for Relational Databases 1.1Semantics of the Relation Attributes 1.2 Redundant d Information in Tuples and Update Anomalies 1.3 Null Values in Tuples 1.4 Spurious Tuples

More information

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe CHAPTER 14 Basics of Functional Dependencies and Normalization for Relational Databases Slide 14-2 Chapter Outline 1 Informal Design Guidelines for Relational Databases 1.1 Semantics of the Relation Attributes

More information

Relational Database Management Systems Oct I. Section-A: 5 X 4 =20 Marks

Relational Database Management Systems Oct I. Section-A: 5 X 4 =20 Marks Relational Database Management Systems Oct 2015 1 I. Section-A: 5 X 4 =20 Marks 1. Data Consistency Files and application programs are created by different programmers over a long period of time, the files

More information

CSE 562 Database Systems

CSE 562 Database Systems Goal CSE 562 Database Systems Question: The relational model is great, but how do I go about designing my database schema? Database Design Some slides are based or modified from originals by Magdalena

More information

Unit- III (Functional dependencies and Normalization, Relational Data Model and Relational Algebra)

Unit- III (Functional dependencies and Normalization, Relational Data Model and Relational Algebra) Unit- III (Functional dependencies and Normalization, Relational Data Model and Relational Algebra) Important questions Section A :(2 Marks) 1.What is Functional Dependency? Functional dependency (FD)

More information

A l Ain University Of Science and Technology

A l Ain University Of Science and Technology A l Ain University Of Science and Technology 4 Handout(4) Database Management Principles and Applications The Entity Relationship (ER) Model http://alainauh.webs.com/ 1 In this chapter, you will learn:

More information

THE RELATIONAL DATABASE MODEL

THE RELATIONAL DATABASE MODEL THE RELATIONAL DATABASE MODEL Introduction to relational DB Basic Objects of relational model Properties of relation Representation of ER model to relation Keys Relational Integrity Rules Functional Dependencies

More information

15CS53: DATABASE MANAGEMENT SYSTEM

15CS53: DATABASE MANAGEMENT SYSTEM 15CS53: DATABASE MANAGEMENT SYSTEM Subject Code: 15CS53 I.A. Marks: 20 Hours/Week: 04 Exam Hours: 03 Total Hours: 56 Exam Marks: 80 Objectives of the Course: This course will enable students to Provide

More information

Chapter 14 Outline. Normalization for Relational Databases: Outline. Chapter 14: Basics of Functional Dependencies and

Chapter 14 Outline. Normalization for Relational Databases: Outline. Chapter 14: Basics of Functional Dependencies and Ramez Elmasri, Shamkant B. Navathe(2016) Fundamentals of Database Systems (7th Edition), pearson, isbn 10: 0-13-397077-9;isbn-13:978-0-13-397077-7. Chapter 14: Basics of Functional Dependencies and Normalization

More information

Professional Knowledge Complete Theory IT Ebook For IBPS RRB SCALE-2 SBI IT IBPS IT INSURANCE SPECIALIST EXAM

Professional Knowledge Complete Theory IT Ebook For IBPS RRB SCALE-2 SBI IT IBPS IT INSURANCE SPECIALIST EXAM Professional Knowledge Complete Theory IT Ebook For IBPS RRB SCALE-2 SBI IT IBPS IT INSURANCE SPECIALIST EXAM 2017-18 In this ebook cover complete IT theory with some previous year asked questions topic

More information

1D0-541_formatted. Number: Passing Score: 800 Time Limit: 120 min File Version: 1.

1D0-541_formatted.  Number: Passing Score: 800 Time Limit: 120 min File Version: 1. 1D0-541_formatted Number: 000-000 Passing Score: 800 Time Limit: 120 min File Version: 1.0 http://www.gratisexam.com/ 1D0-541 1D0-541 CIW v5 Database Design Specialist Version 1.7 Exam A QUESTION 1 With

More information

Chapter 10. Normalization. Chapter Outline. Chapter Outline(contd.)

Chapter 10. Normalization. Chapter Outline. Chapter Outline(contd.) Chapter 10 Normalization Chapter Outline 1 Informal Design Guidelines for Relational Databases 1.1Semantics of the Relation Attributes 1.2 Redundant Information in Tuples and Update Anomalies 1.3 Null

More information

Week. Lecture Topic day (including assignment/test) 1 st 1 st Introduction to Module 1 st. Practical

Week. Lecture Topic day (including assignment/test) 1 st 1 st Introduction to Module 1 st. Practical Name of faculty: Gaurav Gambhir Discipline: Computer Science Semester: 6 th Subject: CSE 304 N - Essentials of Information Technology Lesson Plan Duration: 15 Weeks (from January, 2018 to April, 2018)

More information

COURSE OUTLINE. Page : 1 of 5. Semester: 2 Academic Session: 2017/2018

COURSE OUTLINE. Page : 1 of 5. Semester: 2 Academic Session: 2017/2018 Course Code: SCSD5 Page : 1 of 5 S Lecturer : Nor Hawaniah Zakaria Room No. : 40-06, Block N8 Telephone No. : 07-55410 E-mail : hawaniah@utm.my Synopsis : This course introduces students to the concept

More information