Download Introduction to database and data communication and more Exams Data Communication Systems and Computer Networks in PDF only on Docsity!
ALL RIGHTS RESERVED
CHAPTER 3-
DATA MODELING
3- 2 ALL RIGHTS RESERVED
In this chapter, you will learn:
- (^) What a conceptual model is and what its purpose is
- (^) The difference between internal and external models
- (^) How internal and external models serve the database design process
- (^) How relationships between entities are defined and refined, and how such relationships are incorporated into the database design process
- (^) How ERD components affect database design and implementation
- (^) How to interpret the modeling symbols for the four most popular E-R modeling tools
- (^) That real-world database design often requires you to reconcile conflicting goals
3- 4 ALL RIGHTS RESERVED
Data Models: Degrees of Data Abstraction Figure 3.
3- 5 ALL RIGHTS RESERVED
Degrees of Abstraction
- (^) Conceptual
- (^) Global view of data
- (^) Basis for identification and description of main data items
- (^) ERD used to represent conceptual data model
- (^) Hardware and software independent
- (^) Internal
- (^) Representation of database as seen by DBMS
- (^) Adapts conceptual model to specific DBMS
- (^) Software dependent
3- 7 ALL RIGHTS RESERVED
The Entity Relationship (E-R) Model
- (^) Represents conceptual view
- (^) Main Components
- (^) Entities
- Corresponds to entire table, not row
- Represented by rectangle
- (^) Attributes
- (^) Relationships
3- 8 ALL RIGHTS RESERVED
Attributes
- (^) Characteristics of entities
- (^) Domain is set of possible values
- (^) Primary keys underlined Figure 3.
3- 10 ALL RIGHTS RESERVED
Relationships
- (^) Association between entities
- (^) Connected entities are called participants
- (^) Operate in both directions
- (^) Connectivity describes relationship classification
- (^) Cardinality
- (^) Expresses number of entity occurrences associated with one occurrence of related entity
3- 11 ALL RIGHTS RESERVED
Relationship Strength
- (^) Existence dependence
- (^) Entity’s existence depends on existence of related entities
- (^) Existence-independent entities can exist apart from related entities
- (^) EMPLOYEE claims DEPENDENT
- (^) Weak (non-identifying)
- (^) One entity is existence-independent on another
- (^) PK of related entity doesn’t contain PK component of parent entity
- Strong (identifying)
- (^) One entity is existence-dependent on another
- (^) PK of related entity contains PK component of parent entity
3- 13 ALL RIGHTS RESERVED
Weak Entity
- (^) Existence-dependent on another entity
- (^) Has primary key that is partially or totally derived from parent entity Figure 3.
3- 14 ALL RIGHTS RESERVED
Relationship Degree
- (^) Indicates number of associated entities
- (^) Unary
- (^) Single entity
- (^) Recursive
- (^) Exists between occurrences of same entity set
- (^) Binary
- (^) Two entities associated
- (^) Ternary
- (^) Three entities associated
3- 16 ALL RIGHTS RESERVED
Composite Entities
- (^) Used to ‘bridge’ between M:N relationships
- (^) Bridge entities composed of primary keys of each entity needing connection Figure 3.
3- 17 ALL RIGHTS RESERVED
Composite Entities (con’t.) Figure 3.
3- 19 ALL RIGHTS RESERVED
Generalization Hierarchy with Overlapping Subtypes Figure 3.
3- 20 ALL RIGHTS RESERVED
Comparison of E-R Modeling Symbols
- (^) Alternate styles developed to enable easier use of CASE tools
- (^) Chen
- (^) Moved conceptual design into practical database design arena
- (^) Crow’s Foot
- (^) Cannot detail all cardinalities
- (^) Rein
- (^) Similar to Crow’s Foot
- (^) Operates at higher level of abstraction
- (^) IDEF1X
- (^) Derivative of ICAM studies in the late 1970’s
- (^) Uses fewer symbols