Professional Documents
Culture Documents
Lecture objectives
- Lecture outline
Recap
Data modeling
Functional modeling
Existing documents
Users
Existing systems
--- Example
Course
Enroll
Student
Objectives:
To identify entities:
No attribute is specified
--- Example:
student
Enroll
course
Objective:
Features include:
--- Example:
Name
Course
YOB
Enroll
CID
GPA
Student
SID
Name
Note: Because relational data model is a logical data model, it should be discussed
together with the logical data model. But I prefer discussing it after the physical data model.
March 24, 2008
10
Features:
Steps:
11
Relation
Attribute
Schema
Tuple
Keys
Constraints
Functional dependency
Normalization
12
-- Relation
Example:
Course
Relation name
CID
Title
ICS 102
Java
ICS 202
Data structures
ICS 334
Databases
Relation
13
-- Attribute
Course
CID
Title
ICS 102
Java
ICS 202
Data structures
ICS 334
Databases
14
-- Schema
Example:
Course
CID
Title
ICS 102
Java
ICS 202
Data structures
ICS 334
Databases
15
-- Tuple
CID
Title
ICS 102
Java
ICS 202
Data structures
ICS 334
Databases
16
-- Keys
Superkey:
Candidate key:
Primary key
Alternate key
17
-- constraints
NOT NULL
UNIQUE
Primary key
Foreign key
18
-- Functional dependency
19
-- Normalization
INF
3NF
2NF
BCNF
20
END
21