Title: Dagmar Kusiak
1Chapter 2
2Chapter Objectives
- Relational Database Terminology
- Relations (tables)
- Types of Keys
- Skip pages 41-47
3Relation
- Relation (table)
- Columns
- Unique Column names
- Primary Key (Email)
- Rows
- No identical rows (First Normal Form)
4Non-relation
5Types of Keys
- Primary Keys/Candidate Keys
- Composite Keys
- Surrogate Keys
- Foreign Keys and Referential Integrity
6Primary Keys/Candidate Keys
Primary Key Definition Unique column Candidate
Keys Definition many unique columns used to
identify a database record
Advisor(advisorID, AdvisorName, Department,
Phone, Office)
7Composite Keys
Definition key that contains two or more
columns. Candidate keys are composite. Composite
key City is not unique by itself so it contains
city, state, and zipcode.
8Surrogate Keys
Definition Special Kind of Primary Key that is
NUMERIC.
Advisor(advisorID, AdvisorName, Department,
Phone, Office)
9Foreign Keys and Referential Integrity