Professional Documents
Culture Documents
DATA MODELING
Objective
Introduction
Database Design Process
Requirements
Conceptual Design
Entity-Relationship Model
Introduction
The database
And the associated programs.
Dr. Ejaz Ahmed
Requirements
A Company Database
A University Database
The company:
Name
Sex
Birth date
Relationship to employee
Dr. Ejaz Ahmed
Unique number
Unique social security number
Name
current address
Current phone
Permanent address
City
State
Zip code
Permanent phone
Birth date
Sex
Class (freshman, sophomore, )
Department
Degree program (BA, BS, , PhD)
Name (unique)
Department code (unique)
Office number
Office phone
college
Dr. Ejaz Ahmed
Name
Description
Number (unique)
Number of semester hours
Level
Offering department
Number (unique per semester per course)
Semester
Year
Course
An instructor
student number
section number
letter grade
Numeric grade (0, 1, 3, or 4)
Dr. Ejaz Ahmed
10
Entities of:
Company database
Employees
Departments
Projects
Dependents
University Database
Students
Departments
Courses
Sections
Grade reports
11
Conceptual Design
Conceptual modeling +
Entity-Relationship model +
12
Conceptual Modeling
13
11
Dr. Ejaz Ahmed
14
Definition +
Entities +
Attributes +
15
Definition
Entities
Attributes of entities
Relationships between entities
16
Entities
Physical entities
Conceptual entities
17
Entity
An Entity is something about which we store data for
use by managers and workers. An entity can be either
an item found in reality or an abstract concept.
Person: EMPLOYEE, STUDENT, PATIENT
Place: CITY, DEPARTMENT
Object: MACHINE, BUILDING, AUTOMOBILE
Event: CUSTOMER_ORDER, INVENTORY_RENEWAL
Concept: ACCOUNT, COURSE, WORK_CENTER
18
Attributes
Definition +
Types of attributes +
19
Definition
Make
Chassis number
Color
Name
Date of birth
Address
20
Types of Attributes
21
A simple attribute:
A composite attribute:
Street
City
State
Zip
22
Single-valued attribute:
Multi-valued attribute:
23
Derived attribute:
Stored attribute:
24
Complex attribute
Note:
25