Data Modeling 1 Yong Choi School of Business CSUB.

Slides:



Advertisements
Similar presentations
Entity Relationship (E-R) Modeling
Advertisements

Database Systems: Design, Implementation, and Management Tenth Edition
Entity Relationship (E-R) Modeling Hachim Haddouti
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Entity Relationship (ER) Modeling
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Chapter 4 Entity Relationship (E-R) Modeling
Entity Relationship (ER) Modeling
Entity Relationship (ER) Modeling
Entity-Relation Modeling Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International.
Entity Relationship (E-R) Modeling
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Data Modeling Yong Choi School of Business CSUB. Part # 2 2 Database Collection of data in electronic format – A digital library of organization Managed.
Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 1 Data Models: Degrees of Data Abstraction l Modified ANSI/SPARC Framework.
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Chapter 4 Entity Relationship (E-R) Modeling
APPENDIX C DESIGNING DATABASES
Data Modeling 1 Yong Choi School of Business CSUB.
Yong Choi School of Business CSUB
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas.
Entity Relationship Modeling Objectives: To illustrate how relationships between entities are defined and refined. To know how relationships are incorporated.
Data Modeling Using the Entity-Relationship Model
2 1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
3 Chapter 3 Entity Relationship (E-R) Modeling Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
1 Web-Enabled Decision Support Systems Entity-Relationship Modeling Prof. Name Position (123) University Name.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
2 1 Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Systems: Design, Implementation, and Management Ninth Edition
Chapter 5 Entity Relationship (ER) Modelling
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Rob and Coronel Adapted for INFS-3200.
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Database Design Principles – Lecture 3
CS370 Spring 2007 CS 370 Database Systems Lecture 4 Introduction to Database Design.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Data Modeling Using the Entity-Relationship (ER) Model.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
1 A Demo of Logical Database Design. 2 Aim of the demo To develop an understanding of the logical view of data and the importance of the relational model.
Data modeling using the entity-relationship model Chapter 3 Objectives How entities, tuples, attributes and relationships among entities are represented.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 4 ENTITY RELATIONSHIP (ER) MODELING Instructor Ms. Arwa Binsaleh 1.
Data Modeling Yong Choi School of Business CSUB. Part # 2 2 Study Objectives Understand concepts of data modeling and its purpose Learn how relationships.
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
2 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Data Models Why data models are important About the basic data-modeling.
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
Entity Relationship (E-R) Model
Data Modeling Using the Entity- Relationship (ER) Model
Entity Relationship Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Entity- Relationship (ER) Model
TMC2034 Database Concept and Design
Entity Relationship (E-R) Modeling
Entity Relationship (E-R) Modeling
CS311 Database Management system
Data Modeling for Database Design 1
Data Modeling for Database Design 1
Database Management system
بسم الله الرحمن الرحيم.
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Chapter 4 Entity Relationship (ER) Modeling
Entity Relationship (ER) Modeling
Chapter # 4 Entity Relationship (ER) Modeling.
Presentation transcript:

Data Modeling 1 Yong Choi School of Business CSUB

Part # 2 2 Study Objectives Understand concepts of data modeling and its purpose Learn how relationships between entities are defined and refined, and how such relationships are incorporated into the database design process Learn how ERD components affect database design and implementation Learn how to interpret the modeling symbols

Part # 2 Data Modeling Model: an abstraction of a real-world object or event Useful in understanding complexities of the real-world environment Data model Relatively simple representations of complex real-world data structures Data modeling is iterative and progressive process So, “complete” and “100% error free” model is not possible! Only “Optimized” model is possible…..

Part # 2 4 The data modeling revolves around discovering and analyzing organizational and users data requirements based on business rules. Identify what data is important Identify what data should be maintained The major activity of this phase is identifying entities, attributes, and their relationships to construct model using the Entity Relationship Diagram. Data Modeling (con’t)

Part # 2 The Importance of Data Model Blue print: documentation Facilitate interaction among the managers, the designers, and the end users Effective Communication Tool User involvement Independence from a particular DBMS

Part # 2 What is an Entity Relationship Diagram (ERD)? ERD is a data modeling technique used in software engineering to produce a conceptual data model of a information system. So, ERDs illustrate the logical structure of databases. Video clip for basics of ERD development 6

Part # 2 Data Model by Access 7

Part # 2 8 Data Model by PowerDesigner

Part # 2 Data Model by Peter Chen’ Notation (first - original)

Part # 2 10 ERD Notation (most popular)

Part # 2 Data Model Notation 1-to-1 relationship 1-to-M relationship M-to-N relationship

Part # 2 Data Model Notation

Part # 2 Data Model Basic Building Blocks

Part # 2 Data Model Basic Building Blocks

Part # 2 Data Model Basic Building Blocks

Part # 2 Data Model Basic Building Blocks

Part # 2 Business Rules Let’s see the real world example on the class website Descriptions of policies, procedures, or principles within a specific organization Use for discovering and analyzing organizational and user’s data requirements for the data model Allow designer team to develop appropriate relationship participation rules and constraints

Part # 2 Discovering Business Rules Sources of business rules: Direct interviews with stakeholders (i.e., users, senior managers) Documents Procedures, Forms, Operations manuals, Budget report, etc.. Rules must be bi-directional.

Part # 2 Business Rules Example 1 A professor can advise many students (professor to student) and each student is advised by one professor (student to professor). A professor can teach many classes and each class is taught by one professor. 19

Part # 2 Business Rules Example 2 Each sales representative writes many invoices and each invoice is written by one sales representative. Each sales representative is assigned to many department and each department has one at most one sales representative. Each customer can generate many invoices and each invoice is generated by one customer. 20

Part # 2 21 Entity Instance Entity instance: a single occurrence of an entity. 6 instances Student ID Last Name First Name 2144ArnoldBetty 3122TaylorJohn 3843SimmonsLisa 9844MacyBill 2837LeathHeather 2293WrenchTim Entity: student instance

Part # 2 22 Entity Instance (con’t)

Part # 2 Entity Type and Entity Instances 23

Part # 2 24 “Describe detail information about an entity ” Entity: Employee Attributes: Employee-Name Address (composite) Phone Extension Date-Of-Hire Job-Skill-Code Salary Attributes

Part # 2 25 Classes of attributes Simple attribute Composite attribute Derived attributes Single-valued attribute Multi-valued attribute

Part # 2 26 A simple attribute cannot be subdivided. Examples: Age, Gender, and Marital status A composite attribute can be further subdivided to yield additional attributes. Examples: ADDRESS --  Street, City, State, Zip PHONE NUMBER --  Area code, Exchange number Simple/Composite attribute

Part # 2 27 is not physically stored within the database instead, it is derived by using an algorithm. Example 1: Late Charge of 2% MS Access: InvoiceAmt * 0.02 Example 2: AGE can be derived from the date of birth and the current date. MS Access: int(Date() – Emp_Dob)/365) Derived attribute

Part # 2 28 can have only a single (atomic) value. Examples: A person can have only one social security number. A manufactured part can have only one serial number. A single-valued attribute is not necessarily a simple attribute. Part No: CA Location: CA, Factory#:08, shift#: 02, part#: Single-valued attribute

Part # 2 29 can have many values. Examples: A person may have several college degrees. A household may have several phones with different numbers A car color Multi-valued attributes

Part # 2 30 Example - “Movie Database” Entity: Movie Star Attributes: SS#: “ ” (single-valued) Cell Phone: “(661) , (661) ” (multi-valued) Name: “Harrison Ford” (composite) Address: “123 Main Str., LA, CA” (composite) Gender: “Female” (simple) Age: 24 (derived)

Part # 2 31 How to find entities? Entity: people, places, objects, and events that information will be stored Tangible: customer, product Intangible: order, invoice look for singular nouns (beginner) BUT a proper noun is not a good candidate….

Part # 2 32 How to find attributes? Attribute: property of an entity A descriptor whose values are associated with individual entities of a specific entity type

Part # 2 33 “ attributes that uniquely identify entity instances” Uniquely identify every instance of the entity One or more of the entity’s attributes Composite identifiers are identifiers that consist of two or more attributes Identifiers are represented by underlying the name of the attribute(s) Employee (Employee_ID), student (Student_ID ) (unique) Identifier