Title: Entity Modeling
1Entity Modeling
2Design Methodology Data Modeling
The Pratt and Adamski approach is not a
standard MIS view.
3Data Modeling
- CS
- Start with reports and forms
- Identify attributes
- Identify tables
- Normalize
- MIS Approach
- Start with a narrative description
- Identify entities
- Design table structure
- Check for normalization
4MIS Data Modeling
- Top-down approach
- Begins with a model of the firm
- Focuses on tables and relationships
- Begins by modeling entities and adds attributes
later - Normalization used as a confirmation rather than
design tool
5Life Cycle
- Enterprise Design major components
- Entities and relationships in context
- Conceptual Design business needs
- Tables and attributes independent of DBMS
- Physical Design technology design
- Entities, attributes, constraints, associative
tables, etc. as they will be built
6Enterprise Design
- Determine the entities and relationships that
interact with the proposed system. - Dont model attributes, constraints or tables
necessary to implement relational structures or
sub-classes
7Enterprise Model
SalesRep
Customer
Order
Product
Supplier
8Conceptual Design
- Determine the model of the system independent of
the DBMS that will be used for physical
implementation. - System entities, primary keys, attributes,
relationships, constraints. No associative
entities, foreign keys or sub-classes.
9Conceptual Model
SalesRep SalesRepID (PK) Name Address
Customer CustomerID (PK) Name Address
Product ProductNum (PK) Description Price Category
Order OrderNumber (PK) Date
10Relational and Physical Design
- Produce a detailed model of the ultimate system.
- Model a complete normalized system. Then
denormalize selectively to improve the
operational characteristics of the final database.
11Relational Model
Customer CustomerID (PK) SalesRepID
(FK) Name Address
SalesRep SalesRepID (PK) Name Address
Product ProductNum (PK) Description Price Category
Order OrderNumber (PK) CustomerID (FK) Date
Order-Product ProdNum (PK/FK) OrderNum (PK/FK)
12Entity Modeling
- Represent each entity as a table
- Determine the attributes for each entity
- Determine the relationships among the entities
13Definition Schema Notation
- TableName( attributes )
- Primary keys are underlined or denoted PK
- Alternate keys are denoted AK
- Secondary keys are denoted SK
- Foreign keys are denoted FK
- Faculty(FacID, Name, Office, Dept (FK))
14E-R Diagrams (PA notation)
15E-R Diagrams (PA notation)
1
m
Department
Employee
Department
Employee
16E-R Diagrams (PA notation)
- Relationships many to many
m
n
Student
Class
Class
Student
17Data Modeling