Introduction to database and data communication, Exams of Data Communication Systems and Computer Networks

Lectures slides on the concepts used inside the database management systems and data communication systems

Typology: Exams

2017/2018

Uploaded on 05/29/2018

katleho-makhalemele
katleho-makhalemele 🇱🇸

4

(1)

2 documents

1 / 33

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ALL RIGHTS RESERVED
No part of this document may be reproduced without written app roval from Limkokwing University of Creative Technology
INTRODUCTION TO DATABASE
CHAPTER 3-1
DATA MODELING
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21

Partial preview of the text

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
    • (^) 1:1, 1:M, M:N
  • (^) 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