Database Design. 6-2 Normalization and First Normal Form. Copyright 2015, Oracle and/or its affiliates. All rights reserved.

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

Exam I Computer Science 420 Dr. St. John Lehman College City University of New York 12 March 2002

Database Design. 2-3 Entity Relationship Modeling and ERDs. Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Sending LESSON PLAN UNIT 1. Essential Question How do you connect with others through ? Lesson Overview. Learning Objectives

Sending LESSON PLAN UNIT 1. Essential Question How do you connect with others through ?

Overview: Students explore how they can use to communicate with real people within their schools, families, and communities.

THE COPPERBELT UNIVERSITY

Sending LESSON PLAN UNIT 1. Essential Question How do you connect with others through ?

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

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

X & Y COORDINATES. Teachers Guide

Database Design. 1-2 Data vs. Information. Copyright 2015, Oracle and/or its affiliates. All rights reserved.

General Overview of Think Central

ER DIAGRAM ER) diagram, a graphical representation of entities and their relationships to each other, typically used in computing in regard to the

2. Once logged in, click on the down arrow next to your login name and select Household.


UC Irvine Law Library Website Usability Project Pre-Final Presentation

Introduction to Computers Windows XP ITSC 1006

learning outcomes 10 min.

First Normal Form. Second Normal Form. Third Normal Form. Fourth Normal Form. Fifth Normal Form. Assoc.Prof.Dr.B.

Database Normalization. (Olav Dæhli 2018)

Schema And Draw The Dependency Diagram

Android Basics Nanodegree Syllabus

Staff Photocopying, Printing & Scanning Guide

IS 263 Database Concepts

Exercise 6 - Addressing a Message

Also please note there are a number of documents outlining more detailed League Manager processes at support.tennis.com.au

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

Test Proctor Responsibilities Before Testing

EXAM PREPARATION GUIDE

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

BYOD Information Session: A Guide to Being Successful with BYOD

DT Challenge Year 7/8 Arduino Sound

Lectures 12: Design Theory I. 1. Normal forms & functional dependencies 2/19/2018. Today s Lecture. What you will learn about in this section

Objective: Find the total volume of solid figures composed of two nonoverlapping

elearning Frequently Asked Questions

Excel 1. Module 6 Data Lists

Grade 9 District Formative Assessment-Extended Response Name Teacher

Appendix B: Topline Questionnaire

Excel VBA. Microsoft Excel is an extremely powerful tool that you can use to manipulate, analyze, and present data.

HOUSTON COMMUNITY COLLEGE SOUTHWEST. Local Area Networks Design and Protocol Cisco 1 ITCC 1002

Introduction to DBMS

Midterm Exam #1 Version A CS 122A Winter 2017

Senior Ad Packet for the 2018 Naaman Forest High School Yearbook

namib I A U n IVERS I TY

HOUSTON COMMUNITY COLLEGE SOUTHWEST. Local Area Networks Design and Protocol Cisco 2 - ITCC 1006

Creating Templates and Working with Multiple Worksheets and Workbooks. Chapter 5

Algebra/Geometry Institute Summer 2007

Name Class Date. Associative Property: When you add, you can group any of the numbers. When you multiply, you can group any of the numbers.

2-1 Ordered Pairs. Lesson Presentation

Dividend in the House

Curriculum Certification Renewal Application Page 1 of 3

myttm General Help for Teams

PHS BYOD Frequently Asked. Question

Applied Information and Communication Technology

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

CHAPTER 3: DATA MODELING USING THE ENTITY-RELATIONSHIP (ER) MODEL

Geometry with Dash. Differentiated Task Cards Scaffolded On Level Challenge Hint Think Beyond. Michelle Eckstein

PMP Exam Prep Coaching Program

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

Activity Parametric Constraints

Unit 9 Tech savvy? Tech support. 1 I have no idea why... Lesson A. A Unscramble the questions. Do you know which battery I should buy?

The Enhanced Entity Relationship (EER) Model

Concepts of storage and directory structure: Organising files using folders and sub-folders. Std: 3

LESSON FIVE: USING THE WEB TO STUDY HISTORY

BTEC Nationals IT - Unit2 FAQs

Objective: Find and name three-dimensional shapes including cone and

Communication and Telecommunications

Go to Grade 5 Everyday Mathematics Sample Lesson

Course on Database Design Carlo Batini University of Milano Bicocca

MOVE IN INFORMATION Strong's Student Rentals KEEP Kimmel Rd. Home, PA Office:

Topic 2. Collections

Grade Common Core Math

Input/Output Machines

BIRKBECK (University of London)

Atrust m320 Windows MultiPoint Zero Client Successfully Improved Learning Environment for Over 200 Schools in Bulgaria

SQA Advanced Unit Specification: general information. Relational Database Management Systems

BINARY FOR THE YOUNGER SET

Chapter 6: Quadratic Functions

Career and Technical Education Series: Office Applications II

TikiLIVE Academic Platform

Finding the Volume of Solids

IMC Unit 4 LINES Study Guide

To be able to create charts that graphically represent your worksheet data, you will: Create column charts on chart sheets by using the F11 key.

MAFS.5.NF.2.5. Interpret multiplication as rescaling.

2. You are required to enter a password of up to 100 characters. The characters must be lower ASCII, printing characters.

Create a Test Manually

Children Aged 5-8. For. A Velsoft Computer Manual for Kids. Entertaining Activities Especially for Children...

INFORMATION TECHNOLOGY PRINCIPLES

EXAM MTA CLOUD FUNDAMENTALS BY MICROSOFT OFFICIAL ACADEMIC COURSE

Qualification Specification

Database Programming with SQL

Howard University School of Law Recommended Policy on Computer Based Exams Presented to the Faculty October 2011

PBL, Projects, and Activities downloaded from NextLesson are provided on an online platform.

Course Outline LEAN Manufacturing in Microsoft Dynamics AX TO TRAIN

Accessing E-Books using OverDrive

Curriculum Catalog

Cryptography Lesson Plan

Midlothian Independent School District. Bring Your Own Device - BYOD Information Guide

February 2004 Tracking Survey Revised Final Topline 4/1/04 Data for February 3 March 1, 2004

Transcription:

Database Design 6-2

Objectives This lesson covers the following objectives: Define the purpose of normalization in database models Define the rule of First Normal Form in the normalization process Determine if an entity conforms to the rule of First Normal Form Convert an entity to First Normal Form if needed 3

Purpose Think about storing your friends phone numbers in three different places: your address book, your cell phone, and a sheet of paper that you have taped to your refrigerator. It s a lot of work if a friend changes his/her phone number. You have to change it in your address book, cell phone, and the sheet of paper taped to your refrigerator. 4

Purpose What happens if data is stored in more than one place in a database? What if someone changes the information in one place and not the other how do you know which information is correct? Redundancy like this causes unnecessary problems in a database. 5

Purpose Normalization is a process that is used to eliminate these kinds of problems. One of your goals as a database designer is to "store information in one place and in the best possible place. If you follow the rules of normalization, you will achieve this goal. 6

First Normal Form (1NF) First Normal Form requires that no multi-valued attributes exist. To check for 1NF, validate that each attribute has a single value for each instance of the entity. One code, one name, and one address exist for the school building, but not one classroom. SCHOOL BUILDING # code * address o classroom SCHOOL BUILDING # code * address SCHOOL BUILDING 1NF The classroom attribute will have multiple values. This entity is not in First Normal Form. the location of located in CLASSROOM * floor * size CLASSROOM is now its own entity. All attributes have only one value per instance. Both entities are in First Normal Form. 7

First Normal Form (1NF) Since many classrooms exist in a school building, classroom is multi-valued and violates 1NF. If an attribute is multivalued, create an additional entity and relate it to the original entity with a 1:M relationship. SCHOOL BUILDING # code * address o classroom SCHOOL BUILDING # code * address SCHOOL BUILDING 1NF The classroom attribute will have multiple values. This entity is not in First Normal Form. the location of located in CLASSROOM * floor * size CLASSROOM is now its own entity. All attributes have only one value per instance. Both entities are in First Normal Form. 8

1NF Violations Examine the entities. Are there any multi-valued attributes? 1) 2) STUDENT * first name * last name * subject SHOPPING MALL # id * address * store name * store floor 3) TEAM # id * player belong to made up of LEAGUE 1NF Violations 9

1NF Solutions When all the attributes in an entity are single-valued, that entity is said to be in First Normal Form. 1) 2) 3) SUBJECT # id STORE # name * floor Taken by located in TEAM # id * player belong to Takes house STUDENT * first name * last name * subject SHOPPING MALL # id * address * store name * store floor have belong to made up of LEAGUE PLAYER o position 1NF Solutions 10

Terminology Key terms used in this lesson included: First Normal Form (1NF) Normalization Redundancy 11

Summary In this lesson, you should have learned how to: Define the purpose of normalization in database models Define the rule of First Normal Form in the normalization process Determine if an entity conforms to the rule of First Normal Form Convert an entity to First Normal Form if needed 12