Systems Development Life Cycle

Slides:



Advertisements
Similar presentations
Entity-Relationship (ER) Modeling
Advertisements

Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
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.
Modeling Data The Entity Relationship Model (ER) For Database Design.
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 4 Entity Relationship (ER) Modeling
Chapter 4 Entity Relationship (E-R) Modeling
Chapter 3 © 2005 by Prentice Hall 1 Objectives Definition of terms Definition of terms Importance of data modeling Importance of data modeling Write good.
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.
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
Data Modeling ERM ERD.
Chapter 5 Entity–Relationship Modeling
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
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
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.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
Chapter 11 & 12 Entity-Relationship (E-R) Model Characteristics of E-R Model Components of E-R Model Example of E-R Model Enhanced E-R Model.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
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.
Databases Illuminated Chapter 3 The Entity Relationship Model.
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.
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
Modelling Data in Organisation Entity-Relationship Model
Overview of Entity‐Relationship Model
Review of Week 1 Database DBMS File systems vs. database systems
Fundamentals of Databases CSU 07203
Chapter 3: Modeling Data in the Organization
Presentation transcript:

IS 4420 Database Fundamentals Chapter 3: Modeling Data in the Organization Leon Chen

Systems Development Life Cycle Database Development Process Enterprise modeling Project Identification and Selection Conceptual data modeling Project Initiation and Planning Analysis Logical Design Logical database design Physical database design and definition Physical Design Implementation Database implementation Maintenance Database maintenance

Overview What is data modeling Importance of data modeling Business rules Entity-relationship model: entities, relationships, and attributes

Conceptual Data Modeling Business Rules Data names Data definitions Conceptual Data Model (Entity-Relationship Diagram)

Data Modeling is the Most Important Input for follow-up processes Data rather than processes are the most complex Data tend to be more stable than business processes

Business Rules Statements that define or constrain some aspect of the business. For example: Friday is business casual dress day Students can only register a course if prerequisite is successfully completed Automated through DBMS software

Entity-Relationship Model A logical representation of the data for an organization or for a business area 3 constructs: Entity - person, place, object, event, concept (often corresponds to a row in a table) Attribute - property or characteristic of an entity (often corresponds to a field in a table) Relationship – link between entities (corresponds to primary key-foreign key equivalencies in related tables) Type vs. instance Entity type: Instructor Entity instance: Leon Chen Entity-Relationship Diagram A graphical representation of entity-relationship model Also called E-R diagram or just ERD STUDENT Name Registers 2

Sample E-R Diagram (Figure 3-1) Attribute Supplier_ID Supplier_Name Supplier_Address 3

A special entity that is also a relationship Relationship symbols Attribute symbols Entity symbols A special entity that is also a relationship Relationship degrees specify number of entity types involved Relationship cardinalities specify how many of each entity type is allowed 8

Entity Person: EMPLOYEE, STUDENT Place: WAREHOUSE, COUNTRY Object: BUILDING, MACHINE Event: SALE, REGISTRATION Concept: ACCOUNT, COURSE CERTIFICATE EMPLOYEE DEPENDENT Weak entity Strong entity Associative entity

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)

Figure 3-4 Inappropriate entities System user System output Appropriate entities

Attribute Attribute - property or characteristic of an entity type Classifications of attributes: Required vs. Optional Attributes Simple vs. Composite Attribute Single-Valued vs. Multivalued Attribute Stored vs. Derived Attributes Identifier Attributes - keys 5

Required vs. Optional Attributes Example: entity – ONLINE_ACCOUNT Required attributes (Not NULL) Account_ID Password Owner_Name Optional attributes Phone_Number Password_Hint

Figure 3-7 – A composite attribute An attribute broken into component parts 12

Figure 3-8 – Entity with a multivalued attribute (Skill) and derived attribute (Years_Employed) from date employed and current date Multivalued: an employee can have more than one skill 13

Figure 3-19 – An attribute that is both multivalued and composite This is an example of time-stamping. More examples? 37

Identifiers (Keys) Identifier (Key) - An attribute (or combination of attributes) that uniquely identifies individual instances of an entity type Candidate Key – an attribute that could be a key. Examples (for STUDENT, PERSON)? Simple Key versus Composite Key 6

Figure 3-9a Simple key attribute The key is underlined 14

Figure 3-9b Composite key attribute Flight_Number Date 15

Guidelines for Identifiers Will not change in value Will not be null Substitute new, simple keys for long, composite keys ?  Game_Number 7

Relationship Relationship Type vs. Relationship Instance Degree of a relationship Cardinality of a relationship Associative Entity – combination of relationship and entity

Figure 3-11a attribute of the relationship The relationship type is modeled as the diamond and lines between entity types 20

Relationship Instance is between specific entity instances

Degree of a relationship is the number of entity types that participate in it Entities of two different types related to each other One entity related to another of the same entity type Entities of three different types related to each other 8

Cardinality of a Relationship One-to-One Each entity in the relationship will have exactly one related entity One-to-Many An entity on one side of the relationship can have many related entities, but an entity on the other side will have a maximum of one related entity Many-to-Many Entities on both sides of the relationship can have many related entities on the other side

22

23

Note: a relationship can have attributes of its own 24

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. Examples? If zero, then optional If one or more, then mandatory Maximum Cardinality. Examples? The maximum number 29

Cardinalities Mandatory one Mandatory many Optional one Optional many 11 18

Figure 3-16a Basic relationship Mandatory minimum cardinalities – Figure 3-17a 1

Optional cardinalities with unary degree, one-to-one relationship Figure 3-17c Optional cardinalities with unary degree, one-to-one relationship 34

Maximum Cardinality Constraint max cardinality constraint 41

Entities can be related to one another in more than one way 40

Attributes or Relationship? Attributes can be transformed to relationships

Attributes or Relationship? Attributes should be transformed to relationships

Associative Entities It’s an entity – it has attributes AND it’s a relationship – it links entities together When should a relationship with attributes 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 should have at least one or more attributes other than the identifier The associative entity may participate in other relationships other than the entities of the associated relationship Ternary relationships should be converted to associative entities

Figure 3-11b – An associative entity (CERTIFICATE) 21

Bill of materials structure 27

Figure 3-18 – Ternary relationship as an associative entity 36

Strong vs. Weak Entities 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 entity Identifying relationship Weak entity

Figure 3-22a E-R diagram for Pine Valley Furniture

Microsoft Visio Notation for Pine Valley Furniture Different modeling software tools may have different notation for the same constructs

A special entity that is also a relationship Relationship symbols Attribute symbols Entity symbols A special entity that is also a relationship Relationship degrees specify number of entity types involved Relationship cardinalities specify how many of each entity type is allowed 8

Sample E-R Diagram (Figure 3-1) Attribute Supplier_ID Supplier_Name Supplier_Address 3