MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management

Slides:



Advertisements
Similar presentations
Entity Relationship Diagrams
Advertisements

Entity-Relationship (ER) Modeling
Systems Development Life Cycle
Data Modeling is an Analysis Activity
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred.
Modeling the Data: Conceptual and Logical Data Modeling
Entity Relationship Model
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 3 The Entity- Relationship Model.
Entity-Relation Modeling Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International.
Database Design & Mapping
System Analysis - Data Modeling
Chapter 3: Modeling Data in the Organization
Conceptual Data Modeling, E-R Diagrams. Outline  Purpose and importance of conceptual data modeling  Entity-Relationship Model Entity  Attributes Relationships.
DATABASE APPLICATION DEVELOPMENT SAK 3408
Chapter 3: Modeling Data in the Organization
Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 1 Data Models: Degrees of Data Abstraction l Modified ANSI/SPARC Framework.
CHAPTER 2: MODELING DATA IN THE ORGANIZATION © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Chapter 3 © 2005 by Prentice Hall 1 Objectives Definition of terms Definition of terms Importance of data modeling Importance of data modeling Write good.
Yong Choi School of Business CSUB
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Entity Relationship Diagrams (ERDs)
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 7th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R.
1 © Prentice Hall, 2002 CMIS564: E/R Modeling Dr. Bordoloi Based on Chapter 3; Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred.
3.1 CSIS 3310 Chapter 3 The Entity-Relationship Model Conceptual Data Modeling.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 2: Modeling Data in the Organization Modern Database Management 10 th Edition Jeffrey.
Chapter 3: Modeling Data in the Organization
Chapter 3: Modeling Data in the Organization
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.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Chapter 2: Modeling Data in the Organization
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Conceptual Data Modeling, Entity Relationship Diagrams
MIS 3053 Database Design & Applications The University of Tulsa Professor: Akhilesh Bajaj ER Model Lecture 1 © Akhilesh Bajaj, 2000, 2002, 2003, 2004.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T5: Designing Database Applications Business Driven Technology.
CHAPTER 2: MODELING DATA IN THE ORGANIZATION © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 2: Modeling Data in the Organization.
CHAPTER 2: MODELING DATA IN THE ORGANIZATION © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey.
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 
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Modeling Data in the Organization Chapters 3 + 4: Modern Database Management 9 th Edition.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Chapter 2 © 2013 Pearson Education, Inc. Publishing as Prentice Hall Chapter 2: Modeling Data in the Organization Modern Database Management 11 th Edition.
Carnegie Mellon University © Robert T. Monroe Management Information Systems Data Modeling Management Information Systems Robert.
Data Modeling Yong Choi School of Business CSUB. Part # 2 2 Study Objectives Understand concepts of data modeling and its purpose Learn how relationships.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
CMIS 450 Database Design Dr. Bijoy Bordoloi Entity Relationship (E-R) Modeling: Additional Notes.
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 2: MODELING DATA.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 3: Modeling Data in the Organization Modern Database Management 9 th Edition Jeffrey.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Pree Thiengburanathum, CAMT, Chiang Mai University 1 Database System Modeling Data in the Organization October 31, 2009 Software Park, Bangkok Thailand.
Chapter 2: Modeling Data in the Organization
Chapter 3 1 Chapter 3: Modeling Data in the Organization.
IS 4420 Database Fundamentals Chapter 3: Modeling Data in the Organization Leon Chen.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Lecture 3: Modeling Data in the Organization Modern Database Management 9 th Edition Jeffrey.
Chapter 3: Modeling Data in the Organization
Business System Development
Modelling Data in Organisation Entity-Relationship Model
Tables and Their Characteristics
Overview of Entity‐Relationship Model
Entity Relationship Diagrams
Review of Week 1 Database DBMS File systems vs. database systems
Chapter 3: Modeling Data in the Organization
Entity-Relationship Diagram (ERD)
ER MODELING Instructor: SAMIA ARSHAD
Presentation transcript:

MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury salisbury@udayton.edu (email) http://www.davesalisbury.com/ (web site)

Modeling reality A database must mirror the real world if it is to answer questions about the real world Data Modeling is a design technique for capturing reality STUDENT Social_Security_No Name Major

Business rules Statements that define or constrain some aspect of the business Assert business structure Control/influence business behavior Expressed in terms familiar to end users Automated through DBMS software

A good business rule is: Declarative – what, not how Precise – clear, agreed-upon meaning Atomic – one statement Consistent – internally and externally Expressible – structured, natural language Distinct – non-redundant Business-oriented – understood by business people

The conceptual model (ER diagram) Delta & Pine Land Company 11/25/97 The conceptual model (ER diagram) Representation of structure and constraints of database independent of software Mainstream approach to conceptual modeling is ERD ease of use CASE support entities and relationships are “natural” No standard notation Building blocks are entities, attributes, relationships, and identifiers

Delta & Pine Land Company 11/25/97 E-R model constructs Entity instance - person, place, object, event, concept (often corresponds to a row in a table) Entity Type – collection of entities (often corresponds to a table) Attribute - property or characteristic of an entity type (often corresponds to a field in a table) Relationship instance – link between entities (corresponds to primary key-foreign key equivalencies in related tables) Relationship type – category of relationship…link between entity types 2

Elements of an E-R diagram Delta & Pine Land Company 11/25/97 Elements of an E-R diagram ASSOCIATIVE ENTITY ENTITY WEAK ENTITY ATTRIBUTE MULTIVALUED ATTRIBUTE DERIVED ATTRIBUTE RELATIONSHIP INDENTIFYING RELATIONSHIP

What should an entity be? Should be: An object that will have many instances in the database An object that will be composed of multiple attributes An object that we are trying to model Should NOT be: A user of the database system An output of the database system (e.g. a report)

Attributes A discrete data element Describes an entity (i.e., is a characteristic) Meaningful (for the system being modeled) Attributes are the items of interest to the organization -- the things being stored Customer_Number 12345 Last_Name Salisbury First_Name Dave Address 2425 Jasper Road City Xenia State OH Zip 45385 Phone 937-293-0258

Delta & Pine Land Company 11/25/97 Identifiers (keys) Identifier (Key) - An attribute (or combination of attributes) that uniquely identifies individual instances of an entity type Simple Key versus Composite Key Candidate Key – an attribute that could be a key…satisfies the requirements for being a key 6

Characteristics of Identifiers Delta & Pine Land Company 11/25/97 Characteristics of Identifiers Will not change in value Will not be null No intelligent identifiers (e.g. containing locations or people that might change) Substitute new, simple keys for long, composite keys 7

Delta & Pine Land Company 11/25/97 Composite Attributes An attribute broken into component parts 12

Delta & Pine Land Company 11/25/97 Simple key attribute The key is underlined 14

Delta & Pine Land Company 11/25/97 Composite Key The key is composed of two subparts 15

Multi-valued & derived attributes Delta & Pine Land Company 11/25/97 Multi-valued & derived attributes Derived from date employed and current date What’s wrong with this? Multivalued: an employee can have more than one skill 13

Both multivalued & composite attribute Delta & Pine Land Company 11/25/97 Both multivalued & composite attribute This is an example of time-stamping 37

More on relationships Relationship Types vs. Relationship Instances The relationship type is modeled as the diamond and lines between entity types…the instance is between specific entity instances Relationships can have attributes These describe features pertaining to the association between the entities in the relationship Two entities can have more than one type of relationship between them (multiple relationships) Associative Entity = combination of relationship and entity More on this later

Delta & Pine Land Company 11/25/97 Relationship degree Binary – two different entity types Unary – related to same entity type Ternary – three different entity types

Cardinality Constraints Delta & Pine Land Company 11/25/97 Cardinality Constraints Cardinality Constraints - the number of instances of one entity that can or must be associated with each instance of another entity. Minimum Cardinality If zero, then optional If one or more, then mandatory Maximum Cardinality The maximum number 29

Relationship cardinality notation Delta & Pine Land Company 11/25/97 Relationship cardinality notation Mandatory one Mandatory many Optional one Optional many

Delta & Pine Land Company 11/25/97 Unary 22

Delta & Pine Land Company 11/25/97 Binary 23

Delta & Pine Land Company 11/25/97 Ternary 24

Delta & Pine Land Company 11/25/97 Ternary relationship w/ attributes (Relationships can have attributes of their own) 24

Hierarchical Relationships Occur frequently Model as multiple 1:M relationships Firm Division Dept

Strong vs. weak entities & identifying relationships Strong entities exist independently of other types of entities has its own unique identifier represented with single-line rectangle Weak entity dependent on a strong entity…cannot exist on its own Does not have a unique identifier represented with double-line rectangle Identifying relationship links strong entities to weak entities represented with double line diamond

Strong & weak entities Weak entity Strong entity Identifying relationship

Associative entities It’s an entity – it has attributes AND it’s a relationship – it links entities together When should a relationship with attributes instead be an associative entity? All relationships for the associative entity should be many The associative entity could have meaning independent of the other entities The associative entity preferably has a unique identifier, and should also have other attributes The associative may be participating in other relationships other than the entities of the associated relationship Ternary relationships should be converted to associative entities (p 112-113)

Maximum & minimum cardinalities Delta & Pine Land Company 11/25/97 Maximum & minimum cardinalities Only maximum showing Mandatory minimums showing 1

Delta & Pine Land Company 11/25/97 Optional cardinality 34

Relationship type; entity & relationship instances Delta & Pine Land Company 11/25/97 Relationship type Relationship type; entity & relationship instances 17

Binary relationship with an attribute Delta & Pine Land Company 11/25/97 Binary relationship with an attribute Here, the date completed attribute pertains specifically to the employee’s completion of a course…it is an attribute of the relationship 20

Unary with an attribute Delta & Pine Land Company 11/25/97 Unary with an attribute Representing a bill-of -materials structure 25

Delta & Pine Land Company 11/25/97 Multiple relationships (entities can be related to one another in more than one way) Employees and departments 40

Professors & courses (fixed upon constraint) Delta & Pine Land Company 11/25/97 Professors & courses (fixed upon constraint) Here,max cardinality constraint is 4 41

Multivalued attribute vs. relationship

Delta & Pine Land Company 11/25/97 Associative entity Associative entity involves a rectangle with a diamond inside. Note that the many-to-many cardinality symbols face toward the associative entity and not toward the other entities 21

Delta & Pine Land Company 11/25/97 Associative Entity This is the Bill of Materials laid out a different way. It could just be a relationship with attributes…it’s a judgment call 27

Ternary as Associative Entity Delta & Pine Land Company 11/25/97 Ternary as Associative Entity 36

Sample E-R Diagram (Similar to figure 3-1 with different notation) Delta & Pine Land Company 11/25/97 Sample E-R Diagram (Similar to figure 3-1 with different notation) 3

Pine Valley Furniture

Notation used in earlier edition of our textbook – what’s different? Delta & Pine Land Company 11/25/97 Notation used in earlier edition of our textbook – what’s different?

Delta & Pine Land Company 11/25/97 Different notation CUSTOMER * Customer ID Customer name ORDER * Order ID Order Date

Third style of notation Delta & Pine Land Company 11/25/97 Third style of notation Customer ID Customer name CUSTOMER 1 SUBMITS M Order ID Order date ORDER

Oracle notation CUSTOMER ORDER #Customer_ID #Order_ID *Customer Name *Order Date

Access Notation