DATA MODELING AND DATABASE DESIGN DATA MODELING AND DATABASE DESIGN Part 1.

Slides:



Advertisements
Similar presentations
More Diagramming & Practice with Relationship Modeling
Advertisements

Database Design Lessons 2 & 3 Database Models, Entities, Relationships.
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Modeling the Data: Conceptual and Logical Data Modeling
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
Database Design & Mapping
Database Design (Data Modeling) DCO11310 Database Systems and Design By Rose Chang.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke Database Processing Tenth Edition Chapter 5 Data.
Entity-Relationship Model and Diagrams (continued)
Database Design Chapter 2. Goal of all Information Systems  To add value –Reduce costs –Increase sales or revenue –Provide a competitive advantage.
Lecture 3 :Database Analysis and Design (II)
APPENDIX C DESIGNING DATABASES
Data Modeling and Entity- Relationship Model I IST2101.
Oracle Academy -Week 1-.
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke’s Chapter Five: Data Modeling with the Entity-Relationship.
IT 244 Database Management System Data Modeling 1 Ref: A First Course in Database System Jeffrey D Ullman & Jennifer Widom.
Module 2: Conceptual Data Modeling with ERD
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Advanced Entity Relationship Concepts. Advanced Concepts UIDs Intersection Entities Recursive Relationships Roles Subtypes Exclusivity Historical Fan.
Chapter 5 1 © Prentice Hall, 2002 Chapter 5: Transforming EER Diagrams into Relations Mapping Regular Entities to Relations 1. Simple attributes: E-R attributes.
1. 2 Data Modeling 3 Process of creating a logical representation of the structure of the database The most important task in database development E-R.
Entity Relationship Diagrams
Database Design Concepts
Overview of Database Development
DATA MODELING AND DATABASE DESIGN
I Copyright © 2004, Oracle. All rights reserved. Introduction.
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
Relational DB Components
Database Design Sections 6 & 7 Second Normal Form (2NF), Unique Identifiers (UID), Third Normal Form (3NF), Arcs, Hierarchies and Recursive relationships.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Entity Relationship Diagram (ERD) 22 February 2011.
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
IS 325 Notes for Wednesday September 4, Syllabus Change I eliminated quizzes I increased the points allocated to homework assignments.
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
I Copyright © Oracle Corporation, All rights reserved. Introduction.
Copyright Ó Oracle Corporation, All rights reserved. Normalization Use the student note section below for further explanation of the slide content.Use.
Database Design Principles – Lecture 3
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
IT 21103/41103 System Analysis & Design. Chapter 04 Data Modeling.
Description and exemplification of entity-relationship modelling.
ERD ( Conceptual data model From the statement of data requirements a conceptual data model is produced. This describes.
Jozef Kuper.  Describe a Database  Entities  Atributes  Relationships.
ITEC 3220A Using and Designing Database Systems Instructor: Prof Z. Yang Course Website: 3220a.htm
Section 04 Lesson 01 Introduction to the Database
ENTITY RELATIONSHIP DIAGRAM ENTITY RELATIONSHIP DIAGRAM IS A SPECIALIZED GRAPHIC THAT ILLUSTRATES THE INTERRELATIONSHIPS BETWEEN ENTITIES IN A DATABASE.
Database Design – Lecture 4 Conceptual Data Modeling.
Database Design – Lecture 6 Moving to a Logical Model.
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
CSE 412/598 DATABASE MANAGEMENT COURSE NOTES 3. ENTITY-RELATIONSHIP CONCEPTUAL MODELING Department of Computer Science & Engineering Arizona State University.
DATA MODELING AND DATABASE DESIGN DATA MODELING AND DATABASE DESIGN Part 2.
2 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Data Models Why data models are important About the basic data-modeling.
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
1 Database Design Sections 6 & 7 First Normal Form (1NF), Second Normal Form (2NF), Unique Identifiers (UID), Third Normal Form (3NF), Arcs, Hierarchies.
DATA MODELING AND DATABASE DESIGN
Chapter 4: Part B Logical Database Design and the Relational Model
ITEC 3220A Using and Designing Database Systems
Entity-Relationship Diagram (ERD)
IT 244 Database Management System
DATA MODELING AND DATABASE DESIGN
Presentation transcript:

DATA MODELING AND DATABASE DESIGN DATA MODELING AND DATABASE DESIGN Part 1

Objectives Learn the stages of system development. Define basic types of data relationships. Recognize the optionality and degree of a relationship Read an entity relationship diagram. Translate an entity relationship diagram into set of table instance charts. Complete translation from logical to physical database design.

Development Stages Creating CONCEPTUAL database model Making LOGICAL database design Performing PHYSICAL database design

Business Narrative Interview notes Existing documentation Current System Specs Course # Code * Name o Start Date o Duration Instructor # id * last name o first name * phone taught by leads a

Benefits of Entity Relationship Diagrams Quickly present concepts in people's minds Provide an easily understood graphical map of the system May be easily refined and upgraded Separate the information required by a business from the activities performed by the business

Entity Relationship Modeling Terms Entity –A thing of significance about which information needs to be known –Examples: department, employee, order Attribute –Something that describes or qualifies an entity –Examples: dept_id, address, customer_id Relationship –An association between two entities –Examples: region and department, customer and order

Entity Relationship Model Create an entity relationship diagram from business specifications or narratives. Scenario (from Department’s side) – "... Assign one or more employees to a certain department..." – "... Some departments do not yet have assigned employees..." DEPARTMENT #* id *name oregion_id EMPLOYEE #* id *last name ousername Contains Belongs to

CUSTOMER #* id *name ophone EMPLOYEE #* id *last name ofirst name (#)* username assigned to the sales rep to the sales rep to Entity Relationship Modeling Conventions ENTITY Soft box Singular, unique name Uppercase ENTITY Soft box Singular, unique name Uppercase attribute Singular name Lowercase Mandatory marked with "*" Optional marked with "o" attribute Singular name Lowercase Mandatory marked with "*" Optional marked with "o" Unique Identifier (UID) Primary marked with "#" Secondary marked with "(#)" Unique Identifier (UID) Primary marked with "#" Secondary marked with "(#)"

Entity Relationship Syntax Syntax –Each source entity {may be | must be} relationship name {one and only | one or more} destination entity. Example –Each ORDER must be for one and only one CUSTOMER. –Each CUSTOMER may be the client for one or more ORDERs. ORDER #* id * ord_date o ship_date CUSTOMER #* id *name ophone for the client for the client for Degree - One or more Optionality - May be Mandatory - Must be Degree - One and only one

Relationships Solid line represents a mandatory relationship often called a MUST BE relation. Dashed Line represents an optional relationship often called a MAY BE relation. OPTIONALITY DEGREE One and only One --- ONE-TO-ONE One or More (Many) --- ONE-TO-MANY

Degree Types One-to-one –Have a degree of one and only one in both directions. –Are rare. –Example: Computer and Motherboard One-to-many –Have a degree of one or more in one direction and a degree of one and only one in the other direction. –Are very common. –Example: Customer and Order. Many-to-many –Have a degree of one or more in both directions. –Are resolved with an intersection entity. –Example: Reader and Magazine

UID Bar: Example ITEM #* id *price oquantity ORDER #* id *ord_date oship_date in made up of made up of EMPLOYEE #* id *last name ofirst name taken by the sales rep for the sales rep for UID bar - relationship is part of the entity’s unique identifier.

UID Bars A Unique Identifier bar indicates that the relationship participates in an entities UID. In other words the UID of one entity becomes part of the composite UID of the other entity as well as a foreign key.

Rules: 1) The UID Bar is always at the many end of a one to many relationship. 2) The entity at the many end always receives the UID of the other entity. UID Bars

COURSE # code * duration o fee INSTRUCTOR # id # last name # first name o hire date PROGRAM # code # start date is taught by is the teacher of included in includes Reading ERD’s