MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )

Slides:



Advertisements
Similar presentations
Entity-Relationship (ER) Modeling
Advertisements

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.
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.
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
© 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.
1 Web-Enabled Decision Support Systems Entity-Relationship Modeling Prof. Name Position (123) University Name.
3.1 CSIS 3310 Chapter 3 The Entity-Relationship Model Conceptual Data Modeling.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
© 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
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Chapter 2: Modeling Data in the Organization
Conceptual Data Modeling, Entity Relationship Diagrams
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
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.
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
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.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Carnegie Mellon University © Robert T. Monroe Management Information Systems Data Modeling Management Information Systems Robert.
Entity Relationship Modeling
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management
Data Modeling Yong Choi School of Business CSUB. Part # 2 2 Study Objectives Understand concepts of data modeling and its purpose Learn how relationships.
Data Modeling Using the Entity-Relationship (ER) Data Model.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
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.
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
Database Concepts Database Analysis
Review of Week 1 Database DBMS File systems vs. database systems
Chapter 3: Modeling Data in the Organization
ER MODELING Instructor: SAMIA ARSHAD
Presentation transcript:

MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( ) (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) 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

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

Relationship degrees specify number of entity types involved Entity symbols A special entity that is also a relationship Relationship symbols Relationship cardinalities specify how many of each entity type is allowed Attribute symbols Elements of an E-R diagram - Hoffer

Elements of an E-R diagram – Chen* ENTITY RELATIONSHIP WEAK ENTITY INDENTIFYING RELATIONSHIP ATTRIBUTE MULTIVALUED ATTRIBUTE ASSOCIATIVE ENTITY DERIVED ATTRIBUTE *Actually somewhat modified Chen.

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)

Inappropriate entities System user System output Appropriate entities Inappropriate/Appropriate Entities

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 Last_Name Salisbury First_Name Dave Address 2425 Jasper Road City Xenia State OH Zip Phone

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

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

Composite Attributes An attribute broken into component parts

Composite Attributes

Key attributes The identifier is boldfaced and underlined

The key is underlined Simple key attribute

The key is composed of two subparts Composite Key

Multi-valued & derived attributes Multivalued an employee can have more than one skill Derived from date employed and current date

Both multivalued & composite attribute This is an example of time-stamping

Derived from date employed and current date What’s wrong with this? Multivalued: an employee can have more than one skill Multi-valued & derived attributes

This is an example of time- stamping Multivalued & composite attribute

More on relationships Relationship Types vs. Relationship Instances The relationship type is modeled as the text on the 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

Relationship types and instances Relationship type Relationship instances

Relationship degree Entities of three different types related to each other Entities of two different types related to each other One entity related to another of the same entity type

Relationship degree Unary – related to same entity type Binary – two different entity types Ternary – three different entity types

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

Relationship cardinality notation Mandatory one Mandatory many Optional one Optional many

Relationship cardinality notation Mandatory one Mandatory many Optional one Optional many

Unary

Binary

Here, the date completed attribute pertains specifically to the employee’s completion of a course…it is an attribute of the relationship Binary relationship with an attribute

Ternary relationship (w/ attributes) (Relationships can have attributes of their own)

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 own unique identifier identifier underlined with single-line Weak entity dependent on a strong entity (identifying owner) cannot exist on its own no a unique identifier (only a partial identifier) Partial identifier underlined with double-line Entity box has double line Identifying relationship links strong entities to weak entities

Strong entity Weak entity Identifying relationship Strong & weak entities

Strong entity Weak entity Identifying relationship Strong & weak entities

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 )

Associative entity is like a relationship with an attribute, but it is also considered to be an entity in its own right. 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 Associative entity

This could just be a relationship with attributes…it’s a judgment call 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 Associative Entity

Ternary as Associative Entity

A patient must have recorded at least one history, and can have many A patient history is recorded for one and only one patient Mandatory cardinalities

An employee can be assigned to any number of projects, or may not be assigned to any at all A project must be assigned to at least one employee, and may be assigned to many 1 optional many, 1 mandatory many

A person is is married to at most one other person, or may not be married at all Optional Cardinality

Entities can be related to one another in more than one way Multiple relationships (entities can be related to one another in more than one way)

Employees and departments Multiple relationships (entities can be related to one another in more than one way)

Here, min cardinality constraint is 2 Professors & courses (fixed upon constraint)

Here,max cardinality constraint is 4 Professors & courses (fixed upon constraint)

simple composite Multivalued attribute vs. relationship

Sample E-R Diagram (Figure 3-1)

Sample E-R Diagram (Similar to figure 3-1 with different notation)

Pine Valley Furniture

Modified Chen notation used in an earlier edition of our textbook

Different notation CUSTOMER * Customer ID Customer name ORDER * Order ID Order Date

Third style of notation CUSTOMER ORDER SUBMITS 1 M Customer ID Customer name Order ID Order date

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

Access Notation