Professional Documents
Culture Documents
MIS710 Module 1a Data and Process Modeling: Arijit Sengupta
MIS710 Module 1a Data and Process Modeling: Arijit Sengupta
MIS710 Module 1a
Data and Process Modeling
Arijit Sengupta
Structure of this semester
ISOM
MIS710
Data Modeling
Process Modeling
Data Flow Diagrams
Entity-Relationship Models
Cardinality and Participation Constraints
Weak Entities
Generalization Hierarchies
So, where are we?
ISOM
Proposal Analysis
Requirements
Normalization
Modeling Design
Schema design
Tables
Indexes Implementation
Queries
Optimization
Testing
Installation
Objectives of this lecture
ISOM
Process Models
Overview of process components
Inputs and outputs of different processes
Data sources and destinations
Mode of data flow between processes
Data Models
Model only the data, no process
Different components of the data
Relationships between primary data components
Motivation - why model?
ISOM
A model
describes business or organization
separates operation from technology
Good modeling requires good methodologies
encompass data, process, decisions
richly expressive and provide for levels of analysis
simple representation
Modeling medium
same term as painting medium, e.g., oil, pastel
both formal and visual
Data Flow medium
ISOM
Notation:
Source: box
Process (transform): box with rounded corners
File (store): box open on right
Destination: box
Flow: arrow
Structure:
Explosion of processes (recursion on structure)
Data Flow Diagrams
ISOM
DFD rules
ISOM
Employees
ER Model Basics (Contd.)
ISOM
ssn lot
since
name dname
Employees
ssn lot did budget
super- subor-
visor dinate
Employees Works_In Departments
Reports_To
Participation Constraints
ISOM
0,M 1,M
Employees Manages Departments
1,1 1,M
Works_In
since
Structural Constraints
ISOM
Participation
Do all entity instances participate in at least one
relationship instance?
Cardinality
How many relationship instances can an entity
instance participate in?
(min,max) (min,max)
Participation Cardinality
0 -- Partial 1 -- one
1 -- Total (Mandatory) M -- more than one
Weak Entities
ISOM
name
cost pname age
ssn lot
Design choices:
Should a concept be modeled as an entity or an attribute?
Should a concept be modeled as an entity or a relationship?
Identifying relationships: Binary or ternary? Aggregation?
Constraints in the ER Model:
A lot of data semantics can (and should) be captured.
But some constraints cannot be captured in ER diagrams.
Entity vs. Attribute
ISOM
Many-to-many relationships
Each entity becomes a table
The relationship becomes a table
PKs of entities becomes FKs in the relationship
Student( )
Course( )
Takes( )
1-Many relationships
Entities become tables
Copy PK of multi-participant to single
participant
Copy attributes of relationship to single
participant (why?)
1-1 relationships
Entities can be merged, or
copy PK of any entity to the other
Generalization
Copy PK of parent entity to child entity
Weak entities
Copy PK of controlling entity to weak
entity
Summary of Conceptual Design
ISOM