Lecture 3. Wednesday, September 3, 2014

Size: px
Start display at page:

Download "Lecture 3. Wednesday, September 3, 2014"

Transcription

1 Lecture 3 Wednesday, September 3, 2014

2 ER Diagrams Last week, we covered ER diagrams which allow us to show entities, attributes, and relationships The last component of an ER diagram is the cardinality of the relationships Cardinality tells us more about the relationship between two entities It tells us (generally) how many of each entity make up the relationship, and whether the relationship is required 1

3 Cardinality: How many? First, there are three types of cardinality regarding how many of each entity make up the relationship o One-to-one o One-to-many o Many-to-many 2

4 How many? One-to-one (1-1) o There can only be one item in each entity of the relationship o Often used when databases did not allow you to set individual permissions by table o Example: If two entities are Student and Social Security Numbers (again, separated due to security), each student has one SSN, and each SSN can belong to one person o Represented in an ER diagram as shown on the right Student has SSN 3

5 How many? One-to-many (1-M) o One entity could have more than one items of the second entity related to it o Example: If two entities are Student and Advisor, each student has one academic advisor, but each academic advisor can only have one multiple advisees o Represented in an ER diagram as shown on the right the many entity of the relationship contains a crowsfoot where the line reaches the rectangle of the entity Advisors advise Students 4

6 How many? Many-to-many (M-M) o Each entity has more than one items of the other entity related to it o Example: If two entities are Students and Courses, each student takes multiple courses, and each course has multiple students enrolled o Represented in an ER diagram as shown on the right both entities have a crowsfoot where the line reaches the rectangle of the entity Students take Courses 5

7 Cardinality: Is it required? The second part of cardinality tells us whether a relationship between two entities requires that at least one of either of the entities must exist 6

8 Is it required? Example o Example: If two entities are Courses and Meeting Reservation o Meeting Reservation consists of days of the week, start/end time, and a building/room o 1-M relationship (courses can have multiple meeting reservations, but each meeting reservation only holds one course) Does a course require at least one meeting reservation? o NO o Online courses and independent studies are two examples of courses that do not have meeting reservations on the schedule Does a course reservation require at least one course? o YES o Rooms are not scheduled to be empty! 7

9 Is it required? We represent this on an ER diagram by placing a line (one) on any entity of a relationship that must exist, and circle (zero) on any entity of a relationship that does not have to exist Courses meet at Meeting Reservation 8

10 Is it required? There can be instances where items from both, neither, or only one entity are required in one-to-one, one-to-many, and many-to-many relationships 9

11 Keys There are two types of keys that can be associated with a field in a table: o Primary key o Foreign key 10

12 Primary Keys A unique field (or fields) with in a table of data Automatically indexed to allow for faster searching Examples: o Students: WIN (only one student can have the a particular WIN) o Courses: Termcode + CRN (several courses can have the same CRN, as they are reused, but only one per term) Every table should have one but does not have to have one 11

13 Primary Keys They should be something that will not change o Example: Although cell phone number is a unique thing that only a single person can have at once, it can change so it is not ideal o WHY? The primary key is used to link related tables together, and a primary key that could change recreates the redundancy that relational databases are supposed to eliminate! If there are no ideal candidates in the existing fields, an auto-incrementing ID field can be created 12

14 Foreign Keys Fields within data that link to fields in other related tables (usually the primary key) Again, indexed to allow for faster searching Examples: o Students has WIN has a primary key o The table with registrations would have WIN as a foreign key 13

15 Normalization The process of removing redundancy from the design of a database Normal forms have been developed over the years: o First Normal Form o Second Normal Form o Third Normal Form o Boyce Codd Normal Form o Fourth Normal Form o Fifth Normal Form o Domain Key Normal Form We will focus on the first three normal forms 14

16 Why normalize databases? To avoid anomalies with updating, inserting, and deleting information 15

17 Update Anomalies Update anomalies occur because multiple records need to be updated to change one piece of information Example: If John Smith moves, his address would need to be updated once for every course he has taken STUDENT ADDRESS COURSE John Smith 123 Main St CS 325 John Smith 123 Main St CS 391 John Smith 123 Main St MTH South St 246 South St 246 South St Steve Davis 789 Franklin St CS 225 MTH 202 MTH 231 CS

18 Delete Anomalies Delete anomalies occur because removing one piece of information deletes another Example: If Steve Davis drops CS 325, we no longer have his address STUDENT ADDRESS COURSE John Smith 123 Main St CS 325 John Smith 123 Main St CS 391 John Smith 123 Main St MTH South St 246 South St 246 South St Steve Davis 789 Franklin St CS 225 MTH 202 MTH 231 CS

19 Insert Anomalies Insert anomalies occur because inserting one piece of information requires knowing another Example: If Matt Ross adds MTH 231, we also need to know his address STUDENT ADDRESS COURSE John Smith 123 Main St CS 325 John Smith 123 Main St CS 391 John Smith 123 Main St MTH South St 246 South St 246 South St Steve Davis 789 Franklin St CS 225 MTH 202 MTH 231 CS

20 First Normal Form First Normal Form (1NF) rids the table of repeating groups or arrays An entity is in 1NF if o Every attribute represents only one value o There are no repeating groups or arrays o Each row is unique Example: Consider the following table which shows which courses a student is registered for 19

21 First Normal Form This table is not in 1NF because of the array of courses This table, corrected to 1NF, would be NAME John Smith ADVISOR ADVRRM COURSES Koch SLC 422 CS 325, CS 391, MTH 231 Sullivan SLC 415 CS 225, MTH 202, MTH

22 First Normal Form This would be the corrected table in 1NF NAME John Smith John Smith John Smith ADVISOR ADVRRM COURSES Koch SLC 422 CS 325 Koch SLC 422 CS 391 Koch SLC 422 MTH 231 Sullivan SLC 415 CS 225 Sullivan SLC 415 MTH 202 Sullivan SLC 415 MTH

23 Second Normal Form Second Normal Form (2NF) rids the table of functional dependencies To convert a table to 2NF, it must first be in 1NF Items in an entity in 2NF should be dependent upon a key, not the item itself Example: Go back to the table we just created in 1NF 22

24 Second Normal Form This table is not in 2NF because the name and advisor are not dependent upon the course, and this information should rely on a key The corrected table in 2NF would be (next slide ) NAME John Smith John Smith John Smith ADVISOR ADVRRM COURSES Koch SLC 422 CS 325 Koch SLC 422 CS 391 Koch SLC 422 MTH 231 Sullivan SLC 415 CS 225 Sullivan SLC 415 MTH 202 Sullivan SLC 415 MTH

25 Second Normal Form To correct the table, we move all information associated with the student and not the course/ registration into another table, linked with a key This would give us the following tables in 2NF 24

26 Second Normal Form Students WIN NAME ADVISOR ADVRRM John Smith Koch SLC 422 Sullivan SLC 415 Registrations WIN COURSES CS CS MTH CS MTH MTH

27 Third Normal Form Third Normal Form (3NF) rids the table of transient dependencies dependencies that do not rely upon the primary key created/used in 2NF To convert a table to 3NF, it must first be in 2NF Example o Go back to the table we just created in 2NF o Is it in 3NF? No! o Why? The advisor s office is not associated with the student (the key of this new table), but the advisor o To convert this to 3NF, we split the advisor information out of the student table to get 26

28 Third Normal Form Students WIN NAME ADVISOR John Smith Faculty WIN NAME OFFICE Koch SLC Sullivan SLC

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

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

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

The Entity-Relationship Model (ER Model) - Part 2

The Entity-Relationship Model (ER Model) - Part 2 Lecture 4 The Entity-Relationship Model (ER Model) - Part 2 By Michael Hahsler Based on slides for CS145 Introduction to Databases (Stanford) Lecture 4 > Section 2 What you will learn about in this section

More information

Normalization Rule. First Normal Form (1NF) Normalization rule are divided into following normal form. 1. First Normal Form. 2. Second Normal Form

Normalization Rule. First Normal Form (1NF) Normalization rule are divided into following normal form. 1. First Normal Form. 2. Second Normal Form Normalization Rule Normalization rule are divided into following normal form. 1. First Normal Form 2. Second Normal Form 3. Third Normal Form 4. BCNF First Normal Form (1NF) As per First Normal Form, no

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

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

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

Databases 1. Daniel POP

Databases 1. Daniel POP Databases 1 Daniel POP Week 6 & 7 Agenda Introduction to normalization Functional dependencies 1NF 2NF 3NF. Transitive dependencies BCNF 4NF. Multivalued dependencies 5NF De-normalization Normalization

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

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

ER Modeling ER Diagram ID-Dependent and Weak Entities Pg 1

ER Modeling ER Diagram ID-Dependent and Weak Entities Pg 1 ER Modeling ER Diagram ID-Dependent and Weak Entities Pg 1 ER Diagram ID-Dependent and Weak Entities Ray Lockwood Points: An ID-dependent entity is an entity whose identifier (key) includes the identifier

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

Lecture 8. Monday, September 29, 2014

Lecture 8. Monday, September 29, 2014 Lecture 8 Monday, September 29, 2014 UNION UNION allows us to combine two or more SELECT statements Example o If we want to find CS and MTH majors o One way: SELECT * FROM students WHERE major IN('CS','MTH');!

More information

RELATIONAL DATABASE DESIGN. Basic Concepts

RELATIONAL DATABASE DESIGN. Basic Concepts Basic Concepts a database is an collection of logically related records or files a relational database stores its data in 2-dimensional tables a table is a two-dimensional structure made up of rows (tuples,

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

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

CS 405G: Introduction to Database Systems

CS 405G: Introduction to Database Systems CS 405G: Introduction to Database Systems Entity Relationship Model Jinze Liu 9/11/2014 1 CS685 : Special The UNIVERSITY Topics in Data of Mining, KENTUCKY UKY Review A database is a large collection of

More information

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

Lectures 12: Design Theory I. 1. Normal forms & functional dependencies 2/19/2018. Today s Lecture. What you will learn about in this section Today s Lecture Lectures 12: Design Theory I Professor Xiannong Meng Spring 2018 Lecture and activity contents are based on what Prof Chris Ré used in his CS 145 in the fall 2016 term with permission 1.

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

In This Lecture. The Relational Model. The Relational Model. Relational Data Structure. Unnamed and named tuples. New thing:scheme (and attributes)

In This Lecture. The Relational Model. The Relational Model. Relational Data Structure. Unnamed and named tuples. New thing:scheme (and attributes) Database Systems Lecture 3 Natasha Alechina In This Lecture Relational data integrity For more information Connolly and Begg chapter 3 E.F. Codd s paper `A Relational Model of Data for Large Shared Data

More information

Refresher: ER-modeling, logical relational model, dependencies. Toon Calders

Refresher: ER-modeling, logical relational model, dependencies. Toon Calders Refresher: ER-modeling, logical relational model, dependencies Toon Calders toon.calders@ulb.ac.be Different Levels Conceptual level: ER-diagrams Logical level: Relations, attributes, schemas, primary

More information

How to translate ER Model to Relational Model

How to translate ER Model to Relational Model How to translate ER Model to Relational Model Review - Concepts 2 Relational Model is made up of tables A row of table = a relational instance/tuple A column of table = an attribute A table = a schema/relation

More information

Conceptual Data Modeling

Conceptual Data Modeling Conceptual Data odeling A data model is a way to describe the structure of the data. In models that are implemented it includes a set of operations that manipulate the data. A Data odel is a combination

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 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 terminology. Databases - Sets & Relations. Sets. Membership

Relational terminology. Databases - Sets & Relations. Sets. Membership Relational terminology Databases - & Much of the power of relational databases comes from the fact that they can be described analysed mathematically. In particular, queries can be expressed with absolute

More information

Represent entities and relations with diagrams

Represent entities and relations with diagrams LEARNING OBJECTIVES Define data modeling terms Describe E-R Model Identify entities and relations Represent entities and relations with diagrams WHAT IS DATA MODELING? A data model is a collection of concepts

More information

6.830 Lecture PS1 Due Next Time (Tuesday!) Lab 1 Out end of week start early!

6.830 Lecture PS1 Due Next Time (Tuesday!) Lab 1 Out end of week start early! 6.830 Lecture 3 9.13.2017 PS1 Due Next Time (Tuesday!) Lab 1 Out end of week start early! Relational Model Continued, and Schema Design and Normalization Animals(name,age,species,cageno,keptby,feedtime)

More information

CSCC43H: Introduction to Databases

CSCC43H: Introduction to Databases CSCC43H: Introduction to Databases Lecture 2 Wael Aboulsaadat Acknowledgment: these slides are partially based on Prof. Garcia-Molina & Prof. Ullman slides accompanying the course s textbook. CSCC43: Introduction

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

01/01/2017. Chapter 5: The Relational Data Model and Relational Database Constraints: Outline. Chapter 5: Relational Database Constraints

01/01/2017. Chapter 5: The Relational Data Model and Relational Database Constraints: Outline. Chapter 5: Relational Database Constraints Chapter 5: The Relational Data Model and Relational Database Constraints: Outline Ramez Elmasri, Shamkant B. Navathe(2017) Fundamentals of Database Systems (7th Edition),pearson, isbn 10: 0-13-397077-9;isbn-13:978-0-13-397077-7.

More information

HUB: Add a Class Section to a Multiple Component Course Already on the Schedule

HUB: Add a Class Section to a Multiple Component Course Already on the Schedule HUB: Add a Class Section to a Multiple Component Course Already on the Schedule We will cover adding additional sections to a course already on the schedule. From the Main Menu, click Curriculum Management

More information

Announcements (January 20) Relational Database Design. Database (schema) design. Entity-relationship (E/R) model. ODL (Object Definition Language)

Announcements (January 20) Relational Database Design. Database (schema) design. Entity-relationship (E/R) model. ODL (Object Definition Language) Announcements (January 20) 2 Relational Database Design Review for Codd paper due tonight via email Follow instructions on course Web site Reading assignment for next week (Ailamaki et al., VLDB 2001)

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

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

Continuing Education

Continuing Education Continuing Education Attendance & Grade Roster Training Documentation 7/21/08 1 Welcome to CE Faculty Web Services. This page can be accessed using: http://cefaculty.sdccd.edu or via the District Web Page.

More information

7) To be considered a composite key, a key must contain at least two attributes. Answer: TRUE

7) To be considered a composite key, a key must contain at least two attributes. Answer: TRUE Database Concepts, 7e (Kroenke/Auer) Chapter 2 The Relational Model 1) While the relational model for databases appears to hold much promise, few commercial databases have implemented it. Diff: 1 Page

More information

CLASS DISCUSSION AND NOTES

CLASS DISCUSSION AND NOTES Mon CLASS DISCUSSION AND NOTES September 2009 Tue Wed Thu Fri 7 8 AH-2 Chap. 3 Rel. Model/ Normalization 9 10 Chap. 3 Rel. Model/ Normalization 11 14 15 16 17 18 AH-3; Project Deliverables Chap. 4 DB Design

More information

FACULTY GUIDE TO PEOPLESOFT SELF SERVICE

FACULTY GUIDE TO PEOPLESOFT SELF SERVICE Office of the Registrar FACULTY GUIDE TO PEOPLESOFT SELF SERVICE Contents Introduction... 1 Advisor Center and Faculty Center... 1 Getting Familiar with the Advisor Center... 1 Removing Registration Holds...

More information

The Entity-Relationship (ER) Model

The Entity-Relationship (ER) Model The Entity-Relationship (ER) Model Week 1-2 Professor Jessica Lin The E-R Model 2 The E-R Model The Entity-Relationship Model The E-R (entity-relationship) data model views the real world as a set of basic

More information

Database Design Using E/R Model

Database Design Using E/R Model CS145 Lecture Notes #2 Database Design Using E/R Model Steps in Building a Database 1. Understand real-world domain being captured 2. Specify it using a database design model 3. Translate specification

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

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

Functional Dependencies and Normal Forms

Functional Dependencies and Normal Forms Functional Dependencies and Normal Forms Lecture 9 Sections 15.1-15.4 Robb T. Koether Hampden-Sydney College Mon, Feb 4, 2013 Robb T. Koether (Hampden-Sydney College) Functional Dependencies and Normal

More information

FUNCTIONAL DEPENDENCIES

FUNCTIONAL DEPENDENCIES FUNCTIONAL DEPENDENCIES CS 564- Spring 2018 ACKs: Dan Suciu, Jignesh Patel, AnHai Doan WHAT IS THIS LECTURE ABOUT? Database Design Theory: Functional Dependencies Armstrong s rules The Closure Algorithm

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

Functional Dependencies and Normal Forms

Functional Dependencies and Normal Forms Functional Dependencies and Normal Forms Lecture 9 Sections 15.1-15.4 Robb T. Koether Hampden-Sydney College Mon, Feb 3, 2014 Robb T. Koether (Hampden-Sydney College) Functional Dependencies and Normal

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

Browsing the Class Schedule

Browsing the Class Schedule Browsing the Class Schedule On the Office of the Registrar homepage, under Class Schedules there will be a link to that terms courses in blue at the top of the page. Below the Courses link there are a

More information

Conceptual Design. The Entity-Relationship (ER) Model

Conceptual Design. The Entity-Relationship (ER) Model Conceptual Design. The Entity-Relationship (ER) Model CS430/630 Lecture 12 Slides based on Database Management Systems 3 rd ed, Ramakrishnan and Gehrke Database Design Overview Conceptual design The Entity-Relationship

More information

1. The process of determining the particular tables and columns that will comprise a database is known as database design.

1. The process of determining the particular tables and columns that will comprise a database is known as database design. True / False 1. The process of determining the particular tables and columns that will comprise a database is known as database design. REFERENCES: 21 2. A tabular database is a collection of tables. REFERENCES:

More information

Test Bank for A Guide to SQL 9th Edition by Pratt

Test Bank for A Guide to SQL 9th Edition by Pratt Test Bank for A Guide to SQL 9th Edition by Pratt Link full download: https://testbankservice.com/download/test-bank-for-a-guideto-sql-9th-edition-by-pratt Chapter 2: Database Design Fundamentals True

More information

Graduation Application Acceptance Process

Graduation Application Acceptance Process Graduation Application Acceptance Process 1. After the student submits their application, an email notification will be automatically sent to the advisor of record that one or more advisee(s) has requested

More information

ch02 True/False Indicate whether the statement is true or false.

ch02 True/False Indicate whether the statement is true or false. ch02 True/False Indicate whether the statement is true or false. 1. The process of determining the particular tables and columns that will comprise a database is known as database design. 2. A tabular

More information

Test Bank For A Guide To Mysql 1st Edition By Pratt And Last

Test Bank For A Guide To Mysql 1st Edition By Pratt And Last Test Bank For A Guide To Mysql 1st Edition By Pratt And Last Link full download test bank: https://digitalcontentmarket.org/download/test-bank-for-a-guide-to-mysql-1st-edition-bypratt-and-last/ Link full

More information

FUNCTIONAL DEPENDENCIES CHAPTER , 15.5 (6/E) CHAPTER , 10.5 (5/E)

FUNCTIONAL DEPENDENCIES CHAPTER , 15.5 (6/E) CHAPTER , 10.5 (5/E) FUNCTIONAL DEPENDENCIES CHAPTER 15.1-15.2, 15.5 (6/E) CHAPTER 10.1-10.2, 10.5 (5/E) 4 LECTURE OUTLINE Design guidelines for relation schemas Functional dependencies Definition and interpretation Formal

More information

Applied Databases. Sebastian Maneth. Lecture 5 ER Model, Normal Forms. University of Edinburgh - January 30 th, 2017

Applied Databases. Sebastian Maneth. Lecture 5 ER Model, Normal Forms. University of Edinburgh - January 30 th, 2017 Applied Databases Lecture 5 ER Model, Normal Forms Sebastian Maneth University of Edinburgh - January 30 th, 2017 Outline 2 1. Entity Relationship Model 2. Normal Forms From Last Lecture 3 the Lecturer

More information

The Relational Data Model and Relational Database Constraints

The Relational Data Model and Relational Database Constraints CHAPTER 5 The Relational Data Model and Relational Database Constraints Copyright 2017 Ramez Elmasri and Shamkant B. Navathe Slide 1-2 Chapter Outline Relational Model Concepts Relational Model Constraints

More information

Link download full of Solution Manual:

Link download full of Solution Manual: Test Bank for A Guide to MySQL 1st Edition by Pratt and Last Link download full: http://testbankair.com/download/test-bank-for-a-guide-to-mysql-1st-edition-by-prattand-last/ Link download full of Solution

More information

Normalization Normalization: Fourth Normal Form Pg 1

Normalization Normalization: Fourth Normal Form Pg 1 Normalization Normalization: Fourth Normal Form Pg 1 Normalization: Fourth Normal Form Ray Lockwood Points: A table is in Fourth Normal Form if it doesn't have two or more independent Dependencies (MVD).

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

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

MIS2502: Data Analytics Relational Data Modeling - 1. JaeHwuen Jung

MIS2502: Data Analytics Relational Data Modeling - 1. JaeHwuen Jung MIS2502: Data Analytics Relational Data Modeling - 1 JaeHwuen Jung jaejung@temple.edu http://community.mis.temple.edu/jaejung Where we are Now we re here Data entry Transactional Database Data extraction

More information

Relational Databases and Web Integration. Week 7

Relational Databases and Web Integration. Week 7 Relational Databases and Web Integration Week 7 c.j.pulley@hud.ac.uk Key Constraints Primary Key Constraint ensures table rows are unique Foreign Key Constraint ensures no table row can have foreign key

More information

پوهنتون کابل پوهنحی كمپيوترساینس پوهنیار محمد شعیب "زرین خیل"

پوهنتون کابل پوهنحی كمپيوترساینس پوهنیار محمد شعیب زرین خیل پوهنتون کابل پوهنحی كمپيوترساینس : : تهیه کننده سال پوهنیار محمد شعیب "زرین خیل" 1389 Introduction to Database and Data Models - Relational Model 08 By: M Shuaib Zarinkhail 2010 Referential Integrity Constraint

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

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

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

SOFTWARE ENGINEERING Prof.N.L.Sarda Computer Science & Engineering IIT Bombay. Lecture #10 Process Modelling DFD, Function Decomp (Part 2)

SOFTWARE ENGINEERING Prof.N.L.Sarda Computer Science & Engineering IIT Bombay. Lecture #10 Process Modelling DFD, Function Decomp (Part 2) SOFTWARE ENGINEERING Prof.N.L.Sarda Computer Science & Engineering IIT Bombay Lecture #10 Process Modelling DFD, Function Decomp (Part 2) Let us continue with the data modeling topic. So far we have seen

More information

Entity-Relationship Models: Good Design and Constraints

Entity-Relationship Models: Good Design and Constraints Entity-Relationship Models: Good Design and T. M. Murali September 29, 2010 T. M. Murali September 29, 2010 CS 4604: E/R Design and Guidelines Be faithful to the specification of the application. Avoid

More information

THE COPPERBELT UNIVERSITY

THE COPPERBELT UNIVERSITY THE COPPERBELT UNIVERSITY SCHOOL OF INFORMATION AND COMMUNICATION TECHNOLOGY IT/IS DEPARTMENT MAY, 2018 SESSIONAL EXAMINATIONS CS235 DATABASE TECHNOLOGY TIME ALLOWED: THREE HOURS INSTRUCTIONS : Maximum

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

Banner Student Module Advisor & Instructor Self-Service Manual

Banner Student Module Advisor & Instructor Self-Service Manual Banner Student Module Advisor & Instructor Self-Service Manual TABLE OF CONTENTS Introduction... Timeframes and Deadlines... Signing onto MyIIT and Teaching Tab...... Adding the Advisor Dashboard Channel......

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

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

CSCI 403: Databases 13 - Functional Dependencies and Normalization

CSCI 403: Databases 13 - Functional Dependencies and Normalization CSCI 403: Databases 13 - Functional Dependencies and Normalization Introduction The point of this lecture material is to discuss some objective measures of the goodness of a database schema. The method

More information

Mapping ER Diagrams to. Relations (Cont d) Mapping ER Diagrams to. Exercise. Relations. Mapping ER Diagrams to Relations (Cont d) Exercise

Mapping ER Diagrams to. Relations (Cont d) Mapping ER Diagrams to. Exercise. Relations. Mapping ER Diagrams to Relations (Cont d) Exercise CSC 74 Database Management Systems Topic #6: Database Design Weak Entity Type E Create a relation R Include all simple attributes and simple components of composite attributes. Include the primary key

More information

Database Normalization as a By-product of Minimum Message Length Inference

Database Normalization as a By-product of Minimum Message Length Inference Database Normalization as a By-product of Minimum Message Length Inference David L. Dowe and Nayyar Abbas Zaidi Clayton School of I.T., Monash University, Clayton, Vic. 3800, Australia {david.dowe,nayyar.zaidi}@infotech.monash.edu.au

More information

The University of New Orleans Web-STAR (PeopleSoft Campus Solutions v 9.0): Basic Advisor Training Manual

The University of New Orleans Web-STAR (PeopleSoft Campus Solutions v 9.0): Basic Advisor Training Manual The University of New Orleans Web-STAR (PeopleSoft Campus Solutions v 9.0): Training Manual 10/19/2010 Training Group 2 Welcome to the module! This module contains the information and tools needed to learn

More information

begin [atomic] operation, operation, { commit rollback} end

begin [atomic] operation, operation, { commit rollback} end Set Processing Languages standard, simple data structure RELATION abstracted retrievals RELATIONAL ALGEBRA abstracted updating INSERT, DELETE, UPDATE transaction indivisible set of active operations begin

More information

DC62 Database management system JUNE 2013

DC62 Database management system JUNE 2013 Q2 (a) Explain the differences between conceptual & external schema. Ans2 a. Page Number 24 of textbook. Q2 (b) Describe the four components of a database system. A database system is composed of four

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

From Murach Chap. 9, second half. Schema Refinement and Normal Forms

From Murach Chap. 9, second half. Schema Refinement and Normal Forms From Murach Chap. 9, second half The need for normalization A table that contains repeating columns Schema Refinement and Normal Forms A table that contains redundant data (same values repeated over and

More information

course 3 Levels of Database Design CSCI 403 Database Management Mines Courses ERD Attributes Entities title 9/26/2018

course 3 Levels of Database Design CSCI 403 Database Management Mines Courses ERD Attributes Entities title 9/26/2018 3 Levels of Database Design CSCI 403 Database Management 13 Database Modeling with Entity-Relationship Diagrams Conceptual (this lecture) Understand data entities & relationships between them Communication

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

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

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

Entity Relationship Data Model. Slides by: Shree Jaswal

Entity Relationship Data Model. Slides by: Shree Jaswal Entity Relationship Data Model Slides by: Shree Jaswal Topics: Conceptual Modeling of a database, The Entity-Relationship (ER) Model, Entity Types, Entity Sets, Attributes, and Keys, Relationship Types,

More information

A Deeper Look at Data Modeling. Shan-Hung Wu & DataLab CS, NTHU

A Deeper Look at Data Modeling. Shan-Hung Wu & DataLab CS, NTHU A Deeper Look at Data Modeling Shan-Hung Wu & DataLab CS, NTHU Outline More about ER & Relational Models Weak Entities Inheritance Avoiding redundancy & inconsistency Functional Dependencies Normal Forms

More information

EECS 647: Introduction to Database Systems

EECS 647: Introduction to Database Systems EECS 647: Introduction to Database Systems Instructor: Luke Huan Spring 2009 Administrative I have communicated with KU Bookstore inquring about the text book status. Take home background survey is due

More information

LAB 3 Notes. Codd proposed the relational model in 70 Main advantage of Relational Model : Simple representation (relationstables(row,

LAB 3 Notes. Codd proposed the relational model in 70 Main advantage of Relational Model : Simple representation (relationstables(row, LAB 3 Notes The Relational Model Chapter 3 In the previous lab we discussed the Conceptual Database Design Phase and the ER Diagram. Today we will mainly discuss how to convert an ER model into the Relational

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

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

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

Astra Scheduling Grids

Astra Scheduling Grids Astra Scheduling Grids To access the grids, click on the Scheduling Grids option from the Calendars tab. A default grid will be displayed as defined by the calendar permission within your role. Choosing

More information

ENTITY-RELATIONSHIP MODEL. CS 564- Spring 2018

ENTITY-RELATIONSHIP MODEL. CS 564- Spring 2018 ENTITY-RELATIONSHIP MODEL CS 564- Spring 2018 WHAT IS THIS LECTURE ABOUT E/R Model: entity sets, attribute relation: binary, multi-way relationship roles, attributes on relationships subclasses (ISA) weak

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

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