Unit 3 Conceptual Data Modeling. Key Concepts Conceptual data modeling process Classes and objects Attributes Identifiers, candidate keys, and primary.

Slides:



Advertisements
Similar presentations
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Advertisements

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.
System Analysis - Data Modeling
Systems Analysis Requirements structuring Process Modeling Logic Modeling Data Modeling  Represents the contents and structure of the DFD’s data flows.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Lecture Eleven Entity-Relationship Modelling
Modeling Data The Entity Relationship Model (ER) For Database Design.
Chapter 4 ENTITY-RELATIONSHIP MODELLING.
Entity Relationship Diagrams
Chapter 3: Modeling Data in the Organization
Systems Analysis and Design in a Changing World, 6th Edition
Chapter 4 Entity-Relationship modeling Transparencies © Pearson Education Limited 1995, 2005.
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.
Entity-Relationship modeling Transparencies
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Entity Relationship Diagrams (ERDs)
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.
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.
Chapter 13 (Online): Object-Oriented Databases
Entity-relationship Modeling Transparencies 1. ©Pearson Education 2009 Objectives How to use ER modeling in database design. The basic concepts of an.
Chapter 5 Entity–Relationship Modeling
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter 6 Structuring.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 8 Slide 1 Chapter 9 Structuring System Data Requirements.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Conceptual Data Modeling. What Is a Conceptual Data Model? A detailed model that shows the overall structure of organizational data A detailed model.
R McFadyen Chapter 7 Conceptual Data Modeling.
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 4 - Domain Classes.
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 4 Domain Classes.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Entity-Relationship Modeling Based on Chapter 12.
7-1 © Prentice Hall, 2004 Chapter 7: Conceptual Data Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
7-1 © Prentice Hall, 2007 Chapter 7: Conceptual Data Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 15: Object-Oriented Data Modeling Modern Database Management 9 h Edition Jeffrey A.
7-1 © Prentice Hall, 2007 Week 5: Conceptual Data Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
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 12 Entity-Relationship Modeling Pearson Education © 2009.
CHAPTER 13: OBJECT-ORIENTED DATA MODELING (OVERVIEW) © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition.
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.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Entity Relationship Modeling
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management
Entity-Relation Model. E-R Model The Entity-Relationship (ER) model was originally proposed by Peter in 1976 ER model is a conceptual data model that.
advanced data modeling
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
Entity-Relationship Modeling. 2 Entity Type u Entity type –Group of objects with same properties, identified by enterprise as having an independent existence.
Chapter 8 Entity-Relationship Modeling Pearson Education © 2009.
CHAPTER 13: OBJECT-ORIENTED DATA MODELING (OVERVIEW) Modern Database Management 11 th Edition Jeffrey A. Hoffer, V. Ramesh, Heikki Topi © 2013 Pearson.
© 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.
Enhanced Entity-Relationship and UML Modeling. 2.
ENTITY-RELATIONSHIP MODELLING. Objectives: How to use Entity–Relationship (ER) modelling in database design. Basic concepts associated with ER model.
Data Modeling Using the Entity- Relationship (ER) Model
Business System Development
Business System Development
Tables and Their Characteristics
Outline of the ER Model By S.Saha
Entity-Relationship Modeling
Chapter 3: Modeling Data in the Organization
ER MODELING Instructor: SAMIA ARSHAD
Presentation transcript:

Unit 3 Conceptual Data Modeling

Key Concepts Conceptual data modeling process Classes and objects Attributes Identifiers, candidate keys, and primary keys Multivalued attributes Composite attributes Relationships Unary, binary, and ternary relationships Cardinality and multiplicity Associations Aggregation and composition Composite structure diagrams Generalization

What Is a Conceptual Data Model? A detailed model that shows the overall structure of organizational data Independent of any database management system or other implementation considerations. Represented by UML class diagrams

Use cases are key inputs to conceptual data modeling.

Conceptual model sets the stage for more detailed model, and ultimately system design

Conceptual Data Model Elements Classes Attributes Identifiers Associations, aggregations, compositions Generalizations Time dimensions Integrity rules Security controls

What Is an Object? An entity that encapsulates data and behavior Product Employee Order Line item Class – a set of objects that share the same attributes, operations, relationships, and semantics (abstract) Instance – a single object (concrete)

Class Instance s

What is an Attribute? A named property of a class that describes a range of values that instances of the attribute may hold

UML Class symbol has three parts: 1)Name 2)List of attributes 3)List of operations

Types of Attributes Simple attributes contain single data item Salary Age Identifiers connect unique key value Social security number StudentID Multivalued attributes contain multiple values simultaneously Phone numbers Dependents Composite attributes group of related attributes Address

Stereotypes in Class Diagrams Stereotype – a construct that extends the UML vocabulary Examples: Identifier stereotype > for primary key Multivalued stereotype > Derived stereotype > for values calculated based on other attributes

Primary key is a unique identifier; no two Student instances will have the same studentId value.

Identifiers and Keys Identifier – an attribute or combination of attributes that is selected as the unique characteristic for a class Candidate key – an attribute or combination of attributes that uniquely identifies each object of a class Primary key – a candidate key that is selected as the unique identifier of the class

Choosing a Primary Key Identifiers ExtensionName SSNEmployeeID Candidate keys SSNEmployeeID Primary key EmployeeID

Multivalued attribute can contain multiple values; a student may have several phone numbers

Composite attributes have multiple sections (subattributes). They are treated as separate classes in conceptual data models.

What Is a Relationship? A semantic connection between objects of one or more classes In UML, represented as a line connecting two or more class boxes (or connecting one class to itself)

Roles identify the purpose of each class in the relationship.

What Is Relationship Degree? The number of classes that participate in a relationship Main degrees: Unary – a relationship between objects of the same class Binary – a relationship between objects of two different classes Ternary – a relationship between objects of three different classes

Unary relationships exist between instances of the same class

This is a binary relationship, which indicates that an employee works in a department.

Note: a ternary relationship is not the same as three binary relationships. It is a relationship that links three separate classes simultaneously.

What Is Relationship Multiplicity? The range of the number of objects in Class A that can or must be associated with each object of Class B. A multiplicity is made up of: A minimum cardinality – the minimum number of Class A objects possible A maximum cardinality – the maximum number of Class A objects possible

Relationship Multiplicity Relationships can be: One – to – one One – to – many Many – to – many

Multiplicity notation is: min..max This shows that one movie can be stocked as any number of videotapes, or none at all

Fixed cardinality involves an actual number instead of the generic n This indicates that the maximum number of sections an instructor can teach is 6

Roles make it clearer to see which should be on the one side and which should be on the many side of the relationship.

What Is an Associative Class? A many-to-many association that the data modeler chooses to model as a class Particularly useful if the association contains attributes of its own Represented as a class connected to an association with a dotted line

A Certificate represents a relationship between an employee and a course, and has an attribute pertaining to that relationship

Sometimes associative classes have their own relationships with other classes.

Types of Associations Association No object is subordinate to any other. Aggregation One class represents the whole The other represents the part It is a loose coupling Composition An aggregation with a tight coupling. The whole and the part cannot exist without each other.

Closed diamond indicates composition (course line item cannot exist without course registration) Open diamond indicates aggregation (A player is part of a team, but could also exist without being part of a team)

What Is a Composite Structure Diagram? A diagram that shows how a whole is made up of its parts, especially in cases where the whole has a large number of interrelated parts Useful to reduce clutter in diagrams with many associations Introduced in UML 2

Generalization and Inheritance GeneralizationInheritance A superclass – subclass relationship in which one class forms a broader category in which the other class is a sub- category A subclass inherits all the attributes and operations of its superclass An instance of the subclass contains all the same information (plus more) as an instance of the superclass. Inheritance is an “is-a” relationship

Multiple inheritance is complicated and not supported by all object-oriented programming languages.