Relational Model and ER Model: in a Nutshell

Slides:



Advertisements
Similar presentations
Documenting Database Designs with Entity- Relationship Diagrams IS 460 Notes by Thomas Hilton.
Advertisements

Chapter IV Relational Data Model Pemrograman Sistem Basis Data.
© 2002 by Prentice Hall 1 SI 654 Database Application Design Winter 2003 Dragomir R. Radev.
Fundamentals, Design, and Implementation, 9/e Chapter 4 The Relational Model and Normalization.
© 2005 by Prentice Hall Chapter 3a Database Design Modern Systems Analysis and Design Fourth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 5 The Relational Model and Normalization.
Normalization A337. A337 - Reed Smith2 Structure What is a database? ◦ Tables of information  Rows are referred to as records  Columns are referred.
LOGICAL DATABASE DESIGN
Chapter 3 The Relational Model and Normalization
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Functional Dependence An attribute A is functionally dependent on attribute(s) B if: given a value b for B there is one and only one corresponding value.
Q1: What is DBMS and explain its architecture. Q2: Explain Data Independence in detail. Q3: What is database user and explain the types of database user.
Chapter 5 The Relational Model and Normalization David M. Kroenke Database Processing © 2000 Prentice Hall.
Fundamentals, Design, and Implementation, 9/e. Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 4/2 Copyright.
CMPE 226 Database Systems September 16 Class Meeting Department of Computer Engineering San Jose State University Fall 2015 Instructor: Ron Mak
Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 4 This material was developed by Oregon Health & Science.
Avoiding Database Anomalies
Chapter 4 The Relational Model and Normalization.
The Relational Model and Normalization The Relational Model Normalization First Through Fifth Normal Forms Domain/Key Normal Form The Synthesis of Relations.
Unit 4 Object Relational Modeling. Key Concepts Object-Relational Modeling outcomes and process Relational data model Normalization Anomalies Functional.
Database Design – Lecture 8
Component 4/Unit 6d Topic IV: Design a simple relational database using data modeling and normalization Description and Information Gathering Data Model.
SQL LANGUAGE and Relational Data Model TUTORIAL Prof: Dr. Shu-Ching Chen TA: Hsin-Yu Ha.
©NIIT Normalizing and Denormalizing Data Lesson 2B / Slide 1 of 18 Objectives In this section, you will learn to: Describe the Top-down and Bottom-up approach.
Data Analysis Improving Database Design. Normalization The process of transforming a data model into a flexible, stable structure. Reduces anomalies Anomaly.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 4/1 Copyright © 2004 Please……. No Food Or Drink in the class.
6-1 © Prentice Hall, 2007 Topic 6: Object-Relational Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
IST 220 – Intro to DB Lecture 4 Database Design thru ER Modeling.
8-1 © Prentice Hall, 2007 Chapter 8: Object-Relational Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
Microsoft Access 2010 Chapter 11 Database Design.
RELATIONAL TABLE NORMALIZATION. Key Concepts Guidelines for Primary Keys Deletion anomaly Update anomaly Insertion anomaly Functional dependency Transitive.
FEN Introduction to the database field: The development process Seminar: Introduction to relational databases Development process: Analyse.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 5 The Relational Model and Normalization.
5 1 Normalization of Database Tables. 5 2 Database Tables and Normalization Normalization –Process for evaluating and correcting table structures to minimize.
Database vs File System Integrated Data Reduced Data Duplication Program/Data Independence Easier representation for user Separate/Isolated data Appl.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
Database Design Chapters 17 and 18.
Chapter 8: Object-Relational Modeling
Understanding Data Storage
Relational Database Design by ER- and EER-to- Relational Mapping
Revised: 2 April 2004 Fred Swartz
Chapter 4 Logical Database Design and the Relational Model
SEEM3430: Information Systems Analysis and Design
A brief summary of database normalization
Chapter 5: Logical Database Design and the Relational Model
MIS 322 – Enterprise Business Process Analysis
Quiz Questions Q.1 An entity set that does not have sufficient attributes to form a primary key is a (A) strong entity set. (B) weak entity set. (C) simple.
CIS 207 The Relational Database Model
CSCI-100 Introduction to Computing
Payroll Management System
Figure Specialization Hierarchy
Chapter 11 Database Design
CMPE 226 Database Systems February 21 Class Meeting
Entity-Relationship Model and Diagrams (continued)
Chapter 9 Designing Databases
The Relational Model and Normalization
© 2011 Pearson Education, Inc. Publishing as Prentice Hall
Relational Database.
מודל הנתונים.
Entity relationship diagrams
Normalization A337.
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Database Systems Instructor Name: Lecture-11.
DBMS ER-Relational Mapping
Lecture 04 Normalization.
Chapter 4 The Relational Model and Normalization
Review of Week 3 Relation Transforming ERD into Relations
Shelly Cashman: Microsoft Access 2016
Presentation transcript:

Relational Model and ER Model: in a Nutshell P. Pete Chong 11/14/2018

Relational Model A Model based on “relations” A “relation” is a two-dimensional table Each row is called a “tuple” Each column is call an “attribute” 11/14/2018

Entity-Relationship Model Entity is a “thing” – a collection (table) of attributes that are organized by relevance and usage. Relationship is how data are used together Three cardinalities: 1:1, 1:m, m:n 11/14/2018

Create “Well-Structured” Tables Using ER Model Identify Entities and their Relationships and draw 1ERD Convert 1ERD to 2ERD 1:1 – merge the tables 1:m – the primary key of 1 side becomes the foreign key on the m side m:n – create a third table that uses primary keys on both sides as composite key 11/14/2018

Create “Well-Structured” Tables Using Normalization 1NF: no repeating groups 2NF: non-key attributes are functionally dependent on the primary key 3NF: no transitive dependency DK/NF: every constraint on the relation is a logical consequence of the definition of keys and domain 11/14/2018

Result All tables are in 3NF – which eliminates most of the anomalies already Each table contains one theme 11/14/2018