Lecture 3 (Part 2) Akhtar Ali

Size: px
Start display at page:

Download "Lecture 3 (Part 2) Akhtar Ali"

Transcription

1 Normalisation Lecture 3 (Part 2) Akhtar Ali 10/14/2014 1

2 Learning Objectives 1. To consider the process of Normalisation 2. To consider the definition and application of 1NF 3. To consider the definition and application of 2NF 4. To consider the definition and application of 3NF 10/14/2014 2

3 NORMALISATION PRINCIPLES 10/14/2014 3

4 Normalisation Definition : a systematic method that takes pre-existing relations and produces a canonical set of relations. By canonical is meant well-designed, sound, or a recognised and lawful form. It can be used both for : designing canonical relations, checking existing relations to ensure they are canonical. 10/14/2014 4

5 How Normalization Supports Database Design? 10/14/2014 5

6 Normal forms Normalisation uses the concept of Normal Forms. They are organised in a sequence, each successive normal form being higher than the one before. 1NF 2NF 3NF A normal form is higher because it applies more stringent constraints to a relation than a lower normal form. A relation is said to a be in a certain normal form if it conforms to the constraints of that normal form. 10/14/2014 6

7 Normalisation as a Relational Design Tool Sometimes, we need to use normalisation for designing relations. For example, when ER modelling is not feasible or if we deal with a small number of attributes. So we need to learn normalisation. 1NF stands for First Normal Form, 2NF for Second Normal Form, and so on. The constraints of a particular normal form are those of the previous normal form plus the additional constraint(s) peculiar to this particular normal form. 10/14/2014 7

8 The Normalisation Procedure The normalisation procedure starts with a set of relations, for each of which, it is presumed to be unnormalised or in 0NF. DO FOR xnf = 1NF,... 5NF DO FOR each relation that exists IF relation already conforms to xnf» THEN it is in xnf, so do nothing ELSE create 2 or more replacement relations from it that do conform to xnf. END-LOOP END-LOOP 5NF is the highest possible normal form. In practice, 3NF is the highest normal form usually reached. 8

9 What is a Normal Form? Each Normal Form has two parts A definition that specifies exactly what constraints apply to a relation in that normal form. This is used to check whether any given relation is already in that normal form or not. A method to be used to replace the relation with 2 or more that will be in that normal form. The method assumes that the relation-to-be-replaced is in the previous normal form. 10/14/2014 9

10 Normalising : Possibilities The set of all un-normalised relations The set of all relations in 1NF The set of all relations in 2NF A given relation. Already in 1NF. Nothing to do. Relation Already in 2NF. Nothing to do. And so on. 10/14/

11 Consequences of Normalisation If new, replacement relations are created, then they must be projections of the original. New-Relation π set of attributes (Original-relation) The symbol π denotes projection of a set of attributes from a relation. Normalisation always creates new relations such that Original-relation New-Rel-1 New-Rel-2 The symbol denotes a join between two relations. This ensures that no information is ever lost. 10/14/

12 FIRST NORMAL FORM (1NF) 10/14/

13 Definition of 1NF A relation is in 1NF if and only if every attribute value it can ever contain is an atomic value Question : What is an atomic value? Answer : A value that cannot meaningfully be broken down into two or more constituent parts. 10/14/

14 Example : Purchase Order Relation The following relation holds data about purchase orders placed on suppliers for parts Ord Sno Sname Saddr Date Part Pname Qty Price Tot L5 127 Smith N cle 7 May N8 B6 L4 Nut Bolt Nail L6 315 Bloggs D ham 8 June P3 Q7 Pump Motor Ord Sno Sname Saddr Date Part Pname Qty Price Tot Order number that uniquely identifies every purchase order. Supplier number that uniquely identifies any supplier. The name of a supplier. The address of a supplier. The date on which the order was placed. Part number that uniquely identifies every kind of part used by the company. The name of a particular kind of part. The quantity of a particular kind of part ordered on a purchase order. The price of that quantity of that particular kind of part. The total price to be paid for the whole order. 10/14/

15 Not in 1NF Attributes Ord, Sno, Sname, Saddr, Date and Tot currently contain only atomic values, and in fact can only ever contain atomic values. Attributes Part, Pname, Qty and Price currently contain non-atomic values, and in fact may often contain non-atomic values. Therefore the relation is not in 1NF. 10/14/

16 Putting Purchase Order into 1NF Separate out the atomic and non-atomic attributes Put all the atomic attributes in a new replacement relation, which then by definition is in 1NF. Ord Sno Sname Saddr Date Tot L5 127 Smith N cle 7 May 12 L6 315 Bloggs D ham 8 June /14/

17 The Non-Atomic Attributes We can t just throw away this data because it is a nuisance to store! The values in all these attributes repeat together. If a part is removed from an order, its values must be removed from all 4 attributes. If another part is placed on an order, there must be a value for that part in all 4 attributes. 10/14/

18 Repeating Together Thus a set of values that repeat together should become a tuple in a new relation. Now the attributes in these tuples contain only atomic data! Thus we form another new replacement relation to hold the tuples of data that repeat together. There is no intrinsic reason why all the non-atomic attributes in an un-normalised relation should always repeat together. Part Pname Qty Price N8 Nut 70 4 B6 Bolt 60 5 L4 Nail P3 Pump Q7 Motor /14/

19 Foreign Keys The problem with this relation is that the part data is no longer associated with its order data. We no longer know which part type was ordered on which purchase order. We can solve this problem by adding the (purchase) order number attribute to this relation. In general, we must add the attribute(s) which formed a candidate key in the original relation, to this relation as a foreign key. This retains the relationship information. Ord Part Pname Qty Price L5 N8 Nut 70 4 L5 B6 Bolt 60 5 L5 L4 Nail L6 P3 Pump L6 Q7 Motor /14/

20 Candidate Keys for Relations The candidate key is Ord Ord Sno Sname Saddr Date Tot L5 127 Smith N cle 7 May 12 L6 315 Bloggs D ham 8 June 400 Extend the candidate key to Ord and Part including the foreign key Ord* Ord* Part Pname Qty Price L5 N8 Nut 70 4 L5 B6 Bolt 60 5 L5 L4 Nail L6 P3 Pump L6 Q7 Motor /14/

21 SECOND NORMAL FORM (2NF) 10/14/

22 Definition of 2NF A relation is in 2NF if and only if it is in 1NF and every non-key attribute is fully functionally dependent on the candidate key. The extra constraint applied by 2NF Note that 2NF is more strict than 1NF because it requires the relation to conform to the additional full functional dependency constraint. 10/14/

23 Fully Functionally Dependent Question : What does fully functionally dependent mean? We will first consider the principle of functional dependency, and then see what full functional dependency means, the application to achieve 2NF. 10/14/

24 Example of Functional Dependency Assume some kind of loan account where payments of a certain amount have to be made on a regular basis to pay off the loan. Account Number Payment Due This type of arrow indicates a function dependency. This means : A given account number determines what payment is due. In principle, given an account number, one can find out what regular payment is due. (May not always be easy or feasible in practice). 10/14/

25 Terminology The Account Number is said to functionally determine the Payment Due. The Payment Due is said to be functionally dependent on the Account Number. Both are equally good means of expression, and convenience and emphasis usually determine which of the two is preferred in any particular situation. 10/14/

26 Definition of Functional Dependency (FD) A set of attributes Y in a relation is functionally dependent on a set of attributes X in the same relation if and only if a given set of attribute values in X determines a specific set of attribute values in Y for every instant of time. 10/14/

27 Relationship X:Y in FD is many:1 For any given set of values X, there is just one corresponding set of values Y. It is possible that there may be many sets of values X for which there is just one set of values Y. A functional dependency is a permanent association between attributes. 10/14/

28 Further FD Examples Example 1: Supplier Name Supplier Number Supplier Address Supplier Telephone No. A set containing one attribute determining a set of three attributes. Example 2: a set of two attributes determining a set containing one attribute. Customer Name Customer Address Customer Telephone No. 10/14/

29 Full Functional Dependency & 2NF The definition of 2NF requires not merely functional dependency, but full functional dependency. Definition of FULL Functional Dependency: A set of attributes Y is fully functionally dependent on a set of attributes X if and only if Y is functionally dependent on all the attributes of X and not just a subset of them. 10/14/

30 Condition for 2NF Thus, to be in 2NF means that: all attributes not in the candidate key are fully FD on all those attributes that are in the candidate key. 10/14/

31 Examples: Purchase Order Relations P_ORDER_1: FD Diagram The functional dependencies of the non-key attributes in P_ORDER_1 on its candidate key can be represented by the following FD diagram :- P_ORDER_1 Ord Sno Sname Saddr Date Tot L5 127 Smith N cle 7 May 12 L6 315 Bloggs D ham 8 June 400 Sno As they are all fully FD on Ord, the relation is already in 2NF. Sname Ord Saddr Date 10/14/ Tot

32 P-ITEM-1: FD Diagram P-ITEM-1 Ord* Part Pname Qty Price L5 N8 Nut 70 4 L5 B6 Bolt 60 5 L5 L4 Nail L6 P3 Pump L6 Q7 Motor /14/

33 Reason for non-2nf Attributes Price and Qty depend on the full key. They depend not only on what kind of part they refer to, but also on the order itself the quantity of a part type ordered will vary with & depend on the order, as will the price since it depends on the quantity. However Pname depends solely on the type of part. A particular kind of part will have the same name on every order on which it appears. 10/14/

34 Three Problems of a Non-2NF Relation Redundant data may be stored. Update anomalies there can be problems in inserting, deleting and amending some of the data. Semantic problems. relation does not reflect the real-world meaning of the data, leading to problems in its use. 10/14/

35 Redundant Data Every time a part type appears on an order (say Q7), its name (Motor) also appears. N.B. The part number (say Q7) is enough to identify the part type. P-ITEM-1 Ord* Part Pname Qty Price L5 N8 Nut 70 4 L5 B6 Bolt 60 5 L5 L4 Nail L6 P3 Pump L6 Q7 Motor L7 Q7 Motor Example: Pname is unnecessarily repeated. Motor is repeated in orders L6 & L7. One order is sufficient to give us the name, so the Pname is redundant (either one). 10/14/

36 Update Anomalies Example: Part type details (Part and Pname) cannot always be updated. P-ITEM-1 Ord* Part Pname Qty Price L5 N8 Nut 70 4 L5 B6 Bolt 60 5 L5 L4 Nail L6 P3 Pump L6 Q7 Motor L7 Q7 Engine 2 100?? F5 Flange??? 10/14/

37 Semantic Problems P-ITEM-1 Ord* Part Pname Qty Price L5 N8 Nut 70 4 L5 B6 Bolt 60 5 L5 L4 Nail L6 P3 Pump L6 Q7 Motor L7 Q7 Engine Q7 now has two different names. 10/14/

38 Putting P_ITEM_1 into 2NF (1) Price The problem is caused by Pname being FD on just part, not the whole of the candidate key. Ord Part Qty Pname The solution is to separate out each determinant and its dependents. Create 2 replacement relations based on these FDs. Ord Part Price Qty Part Pname 10/14/

39 Satisfaction of 2NF A relation created with a determinant as its candidate key, and with non-key attributes that are fully functionally dependent on that candidate key, must be in 2NF by definition. Note that a determining attribute - Part in the above example - can appear in more than one complete determinant. This is perfectly acceptable. It just depends what attributes form determinants. 10/14/

40 Putting P_ITEM_1 into 2NF (2) P-ITEM-2 Ord* Part Qty Price L5 N L5 B L5 L L6 P L6 Q L7 Q /14/

41 Putting P_ITEM_1 into 2NF (3) PART_2 Part N8 B6 L4 P3 Q7 Pname Nut Bolt Nail Pump Motor 10/14/

42 Benefits of 2NF No information has been lost. A natural join of P_ITEM_2 and PART_2 on attribute Part will re-create the original relation P_ITEM_1. Problems Solved: Redundant data removed each Pname in once Update anomalies no side effects in operations Semantic problems each part type has just one name 10/14/

43 THIRD NORMAL FORM (3NF) 10/14/

44 Definition of 3NF A relation is in 3NF if and only if it is in 2NF and every non-key attribute is non-transitively fully FD on the candidate key. The extra constraint applied by 3NF Question : What does non-transitively mean? Note that 3NF is more stringent than 2NF, as it requires that the relation not only have full functional dependencies on the candidate key, but that these dependencies must now additionally be non-transitive. 10/14/

45 Transitivity Assume there are three sets of attributes, A, B and C. Let and A B B C These FDs are non-transitive i.e. direct, because they do not go via any other sets of attributes. If A determines B, and B determines C, then logically A determines C, but transitively via B. Then A C This FD is transitive, because it is via another set of attributes, in this case B. 10/14/

46 Example of Transitive FD Suppose pilots always fly the same aircraft then if we know the pilot, we know the aircraft; so pilot functionally determines aircraft. If we know the aircraft, then we know the airline that owns it so aircraft functionally determines airline. Putting these two dependencies together then pilot functionally determines airline. But the functional dependency of airline on pilot is transitive, because it goes via aircraft. 10/14/

47 Non-Transitive Full FD & 3NF So, to be in 3NF means that all attributes not in the candidate key are non-transitively - i.e. directly - fully FD on all those attributes that are in candidate key, and not FD on the candidate key via some other non-key attribute. 10/14/

48 Reviewing the Definition of 3NF 1. R1 s FD diagram shows a chain of dependencies. It is not in 3NF. R1( Key, NK1, NK2, NK3 ) Key NK1 NK2 NK3 2. R2( Key, NK1, NK2, NK3 ) R2 s FD diagram shows no chain of dependencies. It is in 3NF. Key NK1 NK2 10/14/ NK3

49 Example: P_ITEM_2 P-ITEM-2 Ord* Part Qty Price L5 N L5 B L5 L L6 P L6 Q L7 Q Neither Price nor Qty is FD on the candidate key via the other, but nontransitively FD on the key. Thus P_ITEM_2 is already in 3NF. 10/14/

50 Example : PART_2 PART_2 Part N8 B6 L4 P3 Q7 Pname Nut Bolt Nail Pump Motor Thus PART_2 is already in 3NF. If a 2NF relation only has one non-key attribute, then it must already be in 3NF, as there is no other non-key attribute via which a transitive dependency can occur. 10/14/

51 Example : P_ORDER_1 P_ORDER_1 Ord Sno Sname Saddr Date Tot L5 127 Smith N cle 7 May 12 L6 315 Bloggs D ham 8 June 400 Sno Sname As we have already seen, its FD diagram is :- Ord Saddr However, not all of these FDs are nontransitive FDs (= NTFDs). Date Tot Sname Taking account now of transitivity, the FD diagram can be re-drawn as:- Ord Hence P_ORDER_1 is not in 3NF. 10/14/ Sno Date Tot Saddr

52 Putting P_ORDER_1 into 3NF (1) The problem is caused by Sname and Saddr being only transitively FD on the candidate key. Ord Sno Date Sname Saddr Tot Solution: separate out each determinant and its NTFD dependents, & create 2 replacement relations based on them. Sno Sname Ord Date Sno Saddr Tot 10/14/

53 Putting P_ORDER_1 into 3NF (2) Sno Ord Date Tot P_ORDER_3 Ord Sno Date Tot The corresponding relation is:- L May 12 L June /14/

54 Putting P_ORDER_1 into 3NF (3) Sname Sno Saddr SUPPLIER_3 Sno Sname Saddr The corresponding relation is:- 127 Smith N cle 315 Bloggs D ham 10/14/

55 Benefits No information has been lost. A natural join of P_ORDER_3 and SUPPLIER_3 on attribute Sno will re-create the original relation P_ORDER_1. Problems Solved: Redundant data removed each Sname in once Update anomalies no side effects in operations Semantic problems each supplier has just one name 10/14/

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

Lecture 15: Database Normalization

Lecture 15: Database Normalization Lecture 15: Database Normalization Dr Kieran T. Herley Department of Computer Science University College Cork 2018/19 KH (12/11/18) Lecture 15: Database Normalization 2018/19 1 / 18 Summary The perils

More information

Schema Refinement: Dependencies and Normal Forms

Schema Refinement: Dependencies and Normal Forms Schema Refinement: Dependencies and Normal Forms Grant Weddell Cheriton School of Computer Science University of Waterloo CS 348 Introduction to Database Management Spring 2016 CS 348 (Intro to DB Mgmt)

More information

Schema Refinement: Dependencies and Normal Forms

Schema Refinement: Dependencies and Normal Forms Schema Refinement: Dependencies and Normal Forms Grant Weddell David R. Cheriton School of Computer Science University of Waterloo CS 348 Introduction to Database Management Spring 2012 CS 348 (Intro to

More information

Schema Refinement: Dependencies and Normal Forms

Schema Refinement: Dependencies and Normal Forms Schema Refinement: Dependencies and Normal Forms M. Tamer Özsu David R. Cheriton School of Computer Science University of Waterloo CS 348 Introduction to Database Management Fall 2012 CS 348 Schema Refinement

More information

Databases -Normalization I. (GF Royle, N Spadaccini ) Databases - Normalization I 1 / 24

Databases -Normalization I. (GF Royle, N Spadaccini ) Databases - Normalization I 1 / 24 Databases -Normalization I (GF Royle, N Spadaccini 2006-2010) Databases - Normalization I 1 / 24 This lecture This lecture introduces normal forms, decomposition and normalization. We will explore problems

More information

UNIT 3 DATABASE DESIGN

UNIT 3 DATABASE DESIGN UNIT 3 DATABASE DESIGN Objective To study design guidelines for relational databases. To know about Functional dependencies. To have an understanding on First, Second, Third Normal forms To study about

More information

To overcome these anomalies we need to normalize the data. In the next section we will discuss about normalization.

To overcome these anomalies we need to normalize the data. In the next section we will discuss about normalization. Anomalies in DBMS There are three types of anomalies that occur when the database is not normalized. These are Insertion, update and deletion anomaly. Let s take an example to understand this. Example:

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

This lecture. Databases -Normalization I. Repeating Data. Redundancy. This lecture introduces normal forms, decomposition and normalization.

This lecture. Databases -Normalization I. Repeating Data. Redundancy. This lecture introduces normal forms, decomposition and normalization. This lecture Databases -Normalization I This lecture introduces normal forms, decomposition and normalization (GF Royle 2006-8, N Spadaccini 2008) Databases - Normalization I 1 / 23 (GF Royle 2006-8, N

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

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

V. Database Design CS448/ How to obtain a good relational database schema

V. Database Design CS448/ How to obtain a good relational database schema V. How to obtain a good relational database schema Deriving new relational schema from ER-diagrams Normal forms: use of constraints in evaluating existing relational schema CS448/648 1 Translating an E-R

More information

Elmasri/Navathe, Fundamentals of Database Systems, Fourth Edition Chapter 10-2

Elmasri/Navathe, Fundamentals of Database Systems, Fourth Edition Chapter 10-2 Elmasri/Navathe, Fundamentals of Database Systems, Fourth Edition Chapter 10-2 Chapter Outline 1 Informal Design Guidelines for Relational Databases 1.1Semantics of the Relation Attributes 1.2 Redundant

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

DATABASTEKNIK - 1DL116

DATABASTEKNIK - 1DL116 1 DATABASTEKNIK - 1DL116 Spring 2004 An introductury course on database systems http://user.it.uu.se/~udbl/dbt-vt2004/ Kjell Orsborn Uppsala Database Laboratory Department of Information Technology, Uppsala

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

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

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

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

Chapter 14. Chapter 14 - Objectives. Purpose of Normalization. Purpose of Normalization

Chapter 14. Chapter 14 - Objectives. Purpose of Normalization. Purpose of Normalization Chapter 14 - Objectives Chapter 14 Normalization The purpose of normalization. How normalization can be used when designing a relational database. The potential problems associated with redundant data

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

We shall represent a relation as a table with columns and rows. Each column of the table has a name, or attribute. Each row is called a tuple.

We shall represent a relation as a table with columns and rows. Each column of the table has a name, or attribute. Each row is called a tuple. Logical Database design Earlier we saw how to convert an unorganized text description of information requirements into a conceptual design, by the use of ER diagrams. The advantage of ER diagrams is that

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

Functional Dependencies and Normalization for Relational Databases Design & Analysis of Database Systems

Functional Dependencies and Normalization for Relational Databases Design & Analysis of Database Systems Functional Dependencies and Normalization for Relational Databases 406.426 Design & Analysis of Database Systems Jonghun Park jonghun@snu.ac.kr Dept. of Industrial Engineering Seoul National University

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

Entity-Relationship Modelling. Entities Attributes Relationships Mapping Cardinality Keys Reduction of an E-R Diagram to Tables

Entity-Relationship Modelling. Entities Attributes Relationships Mapping Cardinality Keys Reduction of an E-R Diagram to Tables Entity-Relationship Modelling Entities Attributes Relationships Mapping Cardinality Keys Reduction of an E-R Diagram to Tables 1 Entity Sets A enterprise can be modeled as a collection of: entities, and

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

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

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 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

CS 338 Functional Dependencies

CS 338 Functional Dependencies CS 338 Functional Dependencies Bojana Bislimovska Winter 2016 Outline Design Guidelines for Relation Schemas Functional Dependency Set and Attribute Closure Schema Decomposition Boyce-Codd Normal Form

More information

Part II: Using FD Theory to do Database Design

Part II: Using FD Theory to do Database Design Part II: Using FD Theory to do Database Design 32 Recall that poorly designed table? part manufacturer manaddress seller selleraddress price 1983 Hammers R Us 99 Pinecrest ABC 1229 Bloor W 5.59 8624 Lee

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

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

SVY227: Databases for GIS

SVY227: Databases for GIS SVY227: Databases for GIS Lecture 6: Relational Database Normalisation 2. Dr Stuart Barr School of Civil Engineering & Geosciences University of Newcastle upon Tyne. Email: S.L.Barr@ncl.ac.uk Lecture 6:

More information

Functional Dependencies, Normalization. Rose-Hulman Institute of Technology Curt Clifton

Functional Dependencies, Normalization. Rose-Hulman Institute of Technology Curt Clifton Functional Dependencies, Normalization Rose-Hulman Institute of Technology Curt Clifton Or Fixing Broken Database Designs This material will almost certainly appear on Exam II next week. Outline Functional

More information

CS211 Lecture: Database Design

CS211 Lecture: Database Design CS211 Lecture: Database Design Objectives: last revised November 21, 2006 1. To introduce the anomalies that result from redundant storage of data 2. To introduce the notion of functional dependencies

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

Information Systems. Relational Databases. Nikolaj Popov

Information Systems. Relational Databases. Nikolaj Popov Information Systems Relational Databases Nikolaj Popov Research Institute for Symbolic Computation Johannes Kepler University of Linz, Austria popov@risc.uni-linz.ac.at Outline The Relational Model (Continues

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

Database Normalization

Database Normalization Database Normalization Todd Bacastow IST 210 1 Overview Introduction The Normal Forms Relationships and Referential Integrity Real World Exercise 2 Keys in the relational model Superkey A set of one or

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

The Relational Model and Normalization

The Relational Model and Normalization The Relational Model and Normalization 1. Introduction 2 2. Relational Model Terminology 3 4. Normal Forms 11 5. Multi-valued Dependency 21 6. The Fifth Normal Form 22 The Relational Model and Normalization

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

RELATIONAL DATA MODEL

RELATIONAL DATA MODEL RELATIONAL DATA MODEL 3.1 Introduction The relational model of data was introduced by Codd (1970). It is based on a simple and uniform data structure - the relation - and has a solid theoretical and mathematical

More information

DATABASE DESIGN I - 1DL300

DATABASE DESIGN I - 1DL300 DATABASE DESIGN I - 1DL300 Spring 2011 An introductory course on database systems http://www.it.uu.se/edu/course/homepage/dbastekn/vt11/ Manivasakan Sabesan Uppsala Database Laboratory Department of Information

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

Comp 5311 Database Management Systems. 2. Relational Model and Algebra

Comp 5311 Database Management Systems. 2. Relational Model and Algebra Comp 5311 Database Management Systems 2. Relational Model and Algebra 1 Basic Concepts of the Relational Model Entities and relationships of the E-R model are stored in tables also called relations (not

More information

Section 1: Redundancy Anomalies [10 points]

Section 1: Redundancy Anomalies [10 points] CMPUT 391 Midterm Exam (O.R. Zaïane) February 23 rd, 2004 Page 2 of 8 ID# Section 1: Redundancy Anomalies [10 points] 1- (6 points) Consider the following table. Give an example of update anomaly, an example

More information

IJREAS Volume 2, Issue 2 (February 2012) ISSN: COMPARING MANUAL AND AUTOMATIC NORMALIZATION TECHNIQUES FOR RELATIONAL DATABASE ABSTRACT

IJREAS Volume 2, Issue 2 (February 2012) ISSN: COMPARING MANUAL AND AUTOMATIC NORMALIZATION TECHNIQUES FOR RELATIONAL DATABASE ABSTRACT COMPARING MANUAL AND AUTOMATIC NORMALIZATION TECHNIQUES FOR RELATIONAL DATABASE Sherry Verma * ABSTRACT Normalization is a process of analyzing the given relation schemas based on their Functional dependencies

More information

Schema Refinement and Normal Forms

Schema Refinement and Normal Forms Schema Refinement and Normal Forms Chapter 19 Quiz #2 Next Wednesday Comp 521 Files and Databases Fall 2010 1 The Evils of Redundancy Redundancy is at the root of several problems associated with relational

More information

Normalization is based on the concept of functional dependency. A functional dependency is a type of relationship between attributes.

Normalization is based on the concept of functional dependency. A functional dependency is a type of relationship between attributes. Lecture Handout Database Management System Lecture No. 19 Reading Material Database Systems Principles, Design and Implementation written by Catherine Ricardo, Maxwell Macmillan. Section 7.1 7.7 Database

More information

DATABASE TECHNOLOGY - 1DL124

DATABASE TECHNOLOGY - 1DL124 1 DATABASE TECHNOLOGY - 1DL124 Summer 2007 An introductury course on database systems http://user.it.uu.se/~udbl/dbt-sommar07/ alt. http://www.it.uu.se/edu/course/homepage/dbdesign/st07/ Kjell Orsborn

More information

Database Modelling. Lecture 4 (b): Database Integrity, Keys & Constraints. Akhtar Ali 10/14/2014 1

Database Modelling. Lecture 4 (b): Database Integrity, Keys & Constraints. Akhtar Ali 10/14/2014 1 Database Modelling Lecture 4 (b): Database Integrity, Keys & Constraints Akhtar Ali 10/14/2014 1 Learning Objectives 1. To consider Referential Integrity & Foreign Keys 2. To consider Referential Integrity

More information

Multiple-Choice. 3. When you want to see all of the awards, even those not yet granted to a student, replace JOIN in the following

Multiple-Choice. 3. When you want to see all of the awards, even those not yet granted to a student, replace JOIN in the following Database Design, CSCI 340, Spring 2015 Final, May 12 Multiple-Choice 1. Which of the following is not part of the vocabulary of database keys? (3 pts.) a. Referential key b. Composite key c. Primary key

More information

Sankalchand Patel College of Engineering, Visnagar B.E. Semester III (CE/IT) Database Management System Question Bank / Assignment

Sankalchand Patel College of Engineering, Visnagar B.E. Semester III (CE/IT) Database Management System Question Bank / Assignment Sankalchand Patel College of Engineering, Visnagar B.E. Semester III (CE/IT) Database Management System Question Bank / Assignment Introductory concepts of DBMS 1. Explain detailed 3-level architecture

More information

Typical relationship between entities is ((a,b),(c,d) ) is best represented by one table RS (a,b,c,d)

Typical relationship between entities is ((a,b),(c,d) ) is best represented by one table RS (a,b,c,d) Mapping ER Diagrams to a relational database.. Binary relationships: Three possible configurations: 1. One table.. 2. Two tables.. 3. Three tables.. 1-1 relationships R(AB) - S(CD) Typical relationship

More information

MODULE: 3 FUNCTIONAL DEPENDENCIES

MODULE: 3 FUNCTIONAL DEPENDENCIES MODULE: 3 (13 hours) Database design: functional dependencies - Inference Rules for Functional Dependencies - Closure -- Minimal Cover -Normal forms First-second and third normal forms Boyce- Codd normal

More information

Database Management System 18 Advanced Normal Forms

Database Management System 18 Advanced Normal Forms Database Management System 18 School of Computer Engineering, KIIT University 18.1 A table involves a multi-valued dependency if it may contain multiple values for an entity A multi-valued dependency A

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

Database Applications (15-415)

Database Applications (15-415) Database Applications (15-415) The Entity Relationship Model Lecture 2, January 15, 2014 Mohammad Hammoud Today Last Session: Course overview and a brief introduction on databases and database systems

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

Schema Normalization. 30 th August Submitted By: Saurabh Singla Rahul Bhatnagar

Schema Normalization. 30 th August Submitted By: Saurabh Singla Rahul Bhatnagar Schema Normalization 30 th August 2011 Submitted By: Saurabh Singla 09010146 Rahul Bhatnagar 09010136 Normalization Consider the following ER diagram with some FD: Instructor iid A Student sid Department

More information

Database Systems External Sorting and Query Optimization. A.R. Hurson 323 CS Building

Database Systems External Sorting and Query Optimization. A.R. Hurson 323 CS Building External Sorting and Query Optimization A.R. Hurson 323 CS Building External sorting When data to be sorted cannot fit into available main memory, external sorting algorithm must be applied. Naturally,

More information

Dr. Anis Koubaa. Advanced Databases SE487. Prince Sultan University

Dr. Anis Koubaa. Advanced Databases SE487. Prince Sultan University Advanced Databases Prince Sultan University College of Computer and Information Sciences Fall 2013 Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases Anis Koubaa SE487

More information

Case Study: Lufthansa Cargo Database

Case Study: Lufthansa Cargo Database Case Study: Lufthansa Cargo Database Carsten Schürmann 1 Today s lecture More on data modelling Introduction to Lufthansa Cargo Database Entity Relationship diagram Boyce-Codd normal form 2 From Lecture

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

Supplier-Parts-DB SNUM SNAME STATUS CITY S1 Smith 20 London S2 Jones 10 Paris S3 Blake 30 Paris S4 Clark 20 London S5 Adams 30 Athens

Supplier-Parts-DB SNUM SNAME STATUS CITY S1 Smith 20 London S2 Jones 10 Paris S3 Blake 30 Paris S4 Clark 20 London S5 Adams 30 Athens Page 1 of 27 The Relational Data Model The data structures of the relational model Attributes and domains Relation schemas and database schemas (decomposition) The universal relation schema assumption

More information

Draw A Relational Schema And Diagram The Functional Dependencies In The Relation >>>CLICK HERE<<<

Draw A Relational Schema And Diagram The Functional Dependencies In The Relation >>>CLICK HERE<<< Draw A Relational Schema And Diagram The Functional Dependencies In The Relation I need to draw relational schema and dependency diagram showing transitive and partial Functional dependency and normalization

More information

14.1 Answer: 14.2 Answer: 14.3 Answer: 14.4 Answer:

14.1 Answer: 14.2 Answer: 14.3 Answer: 14.4 Answer: 14.1 Suppose that there is a database system that never fails. Is a recovery manager required for this system? Even in this case the recovery manager is needed to perform roll-back of aborted transactions.

More information

A database can be modeled as: + a collection of entities, + a set of relationships among entities.

A database can be modeled as: + a collection of entities, + a set of relationships among entities. The Relational Model Lecture 2 The Entity-Relationship Model and its Translation to the Relational Model Entity-Relationship (ER) Model + Entity Sets + Relationship Sets + Database Design Issues + Mapping

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

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

CSIT5300: Advanced Database Systems

CSIT5300: Advanced Database Systems CSIT5300: Advanced Database Systems L06: Relational Database Design BCNF Dr. Kenneth LEUNG Department of Computer Science and Engineering The Hong Kong University of Science and Technology Hong Kong SAR,

More information

Database Design Theory and Normalization. CS 377: Database Systems

Database Design Theory and Normalization. CS 377: Database Systems Database Design Theory and Normalization CS 377: Database Systems Recap: What Has Been Covered Lectures 1-2: Database Overview & Concepts Lecture 4: Representational Model (Relational Model) & Mapping

More information

Relational Data Structure and Concepts. Structured Query Language (Part 1) The Entity Integrity Rules. Relational Data Structure and Concepts

Relational Data Structure and Concepts. Structured Query Language (Part 1) The Entity Integrity Rules. Relational Data Structure and Concepts Relational Data Structure and Concepts Structured Query Language (Part 1) Two-dimensional tables whose attributes values are atomic. At every row-and-column position within the table, there always exists

More information

Birkbeck. (University of London) BSc/FD EXAMINATION. Department of Computer Science and Information Systems. Database Management (COIY028H6)

Birkbeck. (University of London) BSc/FD EXAMINATION. Department of Computer Science and Information Systems. Database Management (COIY028H6) Birkbeck (University of London) BSc/FD EXAMINATION Department of Computer Science and Information Systems Database Management (COIY028H6) CREDIT VALUE: 15 credits Date of examination: 9 June 2016 Duration

More information

UFCEKG : Dt Data, Schemas Sh and Applications. Lecture 10 Database Theory & Practice (4) : Data Normalization

UFCEKG : Dt Data, Schemas Sh and Applications. Lecture 10 Database Theory & Practice (4) : Data Normalization UFCEKG 20 2 2 : Dt Data, Schemas Sh and Applications Lecture 10 Database Theory & Practice (4) : Data Normalization Normalization (1) o What is Normalization? Informally, Normalization can be thought of

More information

Databases. Dr. Richard E. Turner March 5, 2013

Databases. Dr. Richard E. Turner March 5, 2013 Databases Dr. Richard E. Turner (ret26@cam.ac.uk) March 5, 2013 Big-data: Databases Database = structured collection of data Everywhere: Facebook, MySpace, Google, Android (sqlite3), Amazon,... Amazon

More information

Introduction to Data Management. Lecture #7 (Relational Design Theory)

Introduction to Data Management. Lecture #7 (Relational Design Theory) Introduction to Data Management Lecture #7 (Relational Design Theory) Instructor: Mike Carey mjcarey@ics.uci.edu Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Announcements v HW#2 is

More information

Relational model. Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c)

Relational model. Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c) Relational model Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c) 2011-2016 Relational database model Data are represented as a mathematical relation (subset of cartesian product) of attribute domains

More information

DATABASE TECHNOLOGY. Spring An introduction to database systems

DATABASE TECHNOLOGY. Spring An introduction to database systems 1 DATABASE TECHNOLOGY Spring 2007 An introduction to database systems Kjell Orsborn Uppsala Database Laboratory Department of Information Technology, Uppsala University, Uppsala, Sweden 2 Introduction

More information

A Sample Solution to the Midterm Test

A Sample Solution to the Midterm Test CS3600.1 Introduction to Database System Fall 2016 Dr. Zhizhang Shen A Sample Solution to the Midterm Test 1. A couple of W s(10) (a) Why is it the case that, by default, there are no duplicated tuples

More information

CSE 544 Principles of Database Management Systems

CSE 544 Principles of Database Management Systems CSE 544 Principles of Database Management Systems Magdalena Balazinska Winter 2015 Lecture 2 SQL and Schema Normalization 1 Announcements Paper review First paper review is due before lecture on Wednesday

More information

1. Considering functional dependency, one in which removal from some attributes must affect dependency is called

1. Considering functional dependency, one in which removal from some attributes must affect dependency is called Q.1 Short Questions Marks 1. Considering functional dependency, one in which removal from some attributes must affect dependency is called 01 A. full functional dependency B. partial dependency C. prime

More information

Introduction to Databases, Fall 2003 IT University of Copenhagen. Lecture 4: Normalization. September 16, Lecturer: Rasmus Pagh

Introduction to Databases, Fall 2003 IT University of Copenhagen. Lecture 4: Normalization. September 16, Lecturer: Rasmus Pagh Introduction to Databases, Fall 2003 IT University of Copenhagen Lecture 4: Normalization September 16, 2003 Lecturer: Rasmus Pagh Today s lecture What you should remember from previously. Anomalies in

More information

COSC Dr. Ramon Lawrence. Emp Relation

COSC Dr. Ramon Lawrence. Emp Relation COSC 304 Introduction to Database Systems Normalization Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Normalization Normalization is a technique for producing relations

More information

Exercise 9: Normal Forms

Exercise 9: Normal Forms Data Modelling and Databases (DMDB) ETH Zurich Spring Semester 2017 Systems Group Lecturer(s): Gustavo Alonso, Ce Zhang Date: Assistant(s): Claude Barthels, Eleftherios Sidirourgos, Eliza Last update:

More information

Functional Dependencies and Normalization

Functional Dependencies and Normalization Functional Dependencies and Normalization Jose M. Peña jose.m.pena@liu.se Overview Real world Databases DBMS Model Physical database Queries Processing of queries and updates Access to stored data Answers

More information

CS530 Database Architecture Models. Database Model. Prof. Ian HORROCKS. Dr. Robert STEVENS. and Design The Relational

CS530 Database Architecture Models. Database Model. Prof. Ian HORROCKS. Dr. Robert STEVENS. and Design The Relational 02 - The Relational Database Model CS530 Database Architecture Models and Design Prof. Ian HORROCKS Dr. Robert STEVENS In this Section Topics Covered The basics of the relational model in the context of

More information

Birkbeck. (University of London) BSc/FD EXAMINATION. Department of Computer Science and Information Systems. Database Management (COIY028H6)

Birkbeck. (University of London) BSc/FD EXAMINATION. Department of Computer Science and Information Systems. Database Management (COIY028H6) Birkbeck (University of London) BSc/FD EXAMINATION Department of Computer Science and Information Systems Database Management (COIY028H6) CREDIT VALUE: 15 credits Date of examination: Monday 9th June 2014

More information

Introduction to Database Systems CSE 444. Transactions. Lecture 14: Transactions in SQL. Why Do We Need Transactions. Dirty Reads.

Introduction to Database Systems CSE 444. Transactions. Lecture 14: Transactions in SQL. Why Do We Need Transactions. Dirty Reads. Introduction to Database Systems CSE 444 Lecture 14: Transactions in SQL October 26, 2007 Transactions Major component of database systems Critical for most applications; arguably more so than SQL Turing

More information

USER GUIDE. June 2012 VERSION 1.0. Supplier Portal. Kimberly-Clark. E-sourcing

USER GUIDE. June 2012 VERSION 1.0. Supplier Portal. Kimberly-Clark. E-sourcing USER GUIDE June 2012 VERSION 1.0 Supplier Portal Kimberly-Clark E-sourcing Copyright 2005, Kimberly-Clark Worldwide, Inc. All rights reserved. This document and its associated training materials are proprietary

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

Assignment 2 Solutions

Assignment 2 Solutions CMPT 354 Database Systems I Assignment 2 Solutions Due: Friday, June 23 th, 2006, at the start of class 1. Normalizing relations eliminates redundancy, which is a cause for database anomalies such as inconsistencies

More information

Lecture 5 Design Theory and Normalization

Lecture 5 Design Theory and Normalization CompSci 516 Data Intensive Computing Systems Lecture 5 Design Theory and Normalization Instructor: Sudeepa Roy Duke CS, Fall 2017 CompSci 516: Database Systems 1 HW1 deadline: Announcements Due on 09/21

More information

Introduction to Database Design, fall 2011 IT University of Copenhagen. Normalization. Rasmus Pagh

Introduction to Database Design, fall 2011 IT University of Copenhagen. Normalization. Rasmus Pagh Introduction to Database Design, fall 2011 IT University of Copenhagen Normalization Rasmus Pagh Based on KBL sections 6.1-6.8 (except p. 203 207m), 6.9 (until Multivalued dependencies ), 6.11, and 6.12.

More information

Database Normalization Complete

Database Normalization Complete Database Normalization Complete Table Of Contents Part 1 - Introduction 1.1 What is Normalization? 1.2 Why should I Normalize? 1.3 Terminology 1.4 Summary JasonM (jasonm@accessvba.com) Last Updated: 28

More information

CS 461: Database Systems. Final Review. Julia Stoyanovich

CS 461: Database Systems. Final Review. Julia Stoyanovich CS 461: Database Systems Final Review (stoyanovich@drexel.edu) Final exam logistics When: June 6, in class The same format as the midterm: open book, open notes 2 hours in length The exam is cumulative,

More information