Top Banner
CS 157B Database Systems Dr. T Y Lin
198

CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

Jan 21, 2016

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

CS 157BDatabase Systems

Dr. T Y Lin

Page 2: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

Updates

1. Red color denotes updated data (ppt)

2. Class participation will be part of “extra” credits to to “quiz category grade”

3. Upload DB3(Section 2.2.8),DB2, DB3 (will explain in class) into Oracle

4. Home work Exercise 2.2.1 and Exercise 2.2.3 a), pp 28-29

Page 3: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

1.1 The Evolution of Database Systems

1.1.1 Early Database Management Systems– Banking Systems– Airline Reservation Systems– Corporate Record Keeping Systems

Page 4: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

1.1 The Evolution of Database Systems

1.1.2 Relational Database Systems– Illustrated by Examples

Page 5: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

1.1 The Evolution of Database Systems

1.1.3 Smaller and Smaller Systems

1.1.4 Bigger and Bigger Systems

1.1.5 Information Integration – Data Warehouse

Page 6: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

1.1.2 Relational Database Systems

See word filesthree examples

Page 7: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

Relational Data Model Key Notions

• Attributes: Name of the Columns

• Schemas: The name of the relation and the set of attributes

• Tuples: The rows of the relation other than the header row

• Domains: the past/present/future data

Page 8: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

Relational Data Model Key Notions

• Primary key: Unique value

• Relation Instances:

A relation about suppliers(DB1) and movies (DB3) are not static; relations change over times

Page 9: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

THE SUPPLIER RELATION S

S# SNAME STATUS CITY

S1 SMITH 20 LONDON

S2 JONES 10 PARISS3 BLAKE 10 PARISS4 CLARK 20 LONDONS5 ADAMS 30 ATHENS

RELATIONTUPLES

ATTRIBUTES

PRIMARYKEY

DOMAINS

S# NAME STATUS CITY

Page 10: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

1.2 Overview of a Database Management System

• 1.2.1 Data-Definition Language Commands– Illustrated by three examples on the websitehttp://xanadu.cs.sjsu.edu/~drtylin/classes/cs157B/Spring2010/

Page 11: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

1.2 Overview of a Database Management System

• 1.2.2 Overview of Query Processing

• 1.2.3 Storage and Buffer Management

• 1.2.4 Transaction Processing

• 1.2.5 The Query Processor

Page 12: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

1.3 Outline of Database-System Studies

• Relational Database Modeling

• Relational Database Programming

• Semi structured Data Modeling and Programming

• Database System Implementation

• Modern Database System Issues

Page 13: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.1 An Overview of Data Models

• 2.1.1 What is a Data Model?

• 2.1.2 Important Data Models

• 2.1.3 The Relational Model in Brief

• 2.1.4 The Semistructured Model in Brief

• 2.1.5 Other Data Models

• 2.1.6 Comparison of Modeling Approaches

Page 14: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.1.1 What is a Data Model?

Real World (Math model:)

1. Structure of the Data

2. Operations on the Data

3. Constraints on the Data

Page 15: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

1.3 Outline of Database-System Studies

Page 16: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

1.4 References for Chapter 1

Page 17: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

Chapter 2 Relational Database Modeling

Page 18: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

Delete this slideThe Relational Model of Data

• Attributes: Name of the Columns

• Schemas: The name of the relation and the set of attributes

• Tuples: The rows of the relation other than the header row

Page 19: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

Delete this slide Relational Data Model Key Notions

• Attributes: Name of the Columns

• Schemas: The name of the relation and the set of attributes

• Tuples: The rows of the relation other than the header row

• Domains: the past/present/future data

Page 20: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

Delete this slide Relational Data Model Key

Notions• Relation Instances:

A relation about suppliers(DB1) is not static; relations change over times

• Primary key: Unique value

Page 21: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.1 An Overview of Data Models

• 2.1.1 What is a Data Model?

• 2.1.2 Important Data Models

• 2.1.3 The Relational Model in Brief

• 2.1.4 The Semistructured Model in Brief

• 2.1.5 Other Data Models

• 2.1.6 Comparison of Modeling Approaches

Page 22: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.1.1 What is a Data Model?

Real World (Math model:)

1. Structure of the Data

2. Operations on the Data

3. Constraints on the Data

Page 23: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.1.2 Important Data Models

• 2.1.3 The Relational Model in Brief

See Previous Examples

• 2.1.4 The Semistructured Model in Brief

• 2.1.5 Other Data Models

• 2.1.6 Comparison of Modeling Approaches

Page 24: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.2 Basics of the Relational Model

• 2.2.1 Attributes

• 2.2.2 Schemas

• 2.2.3 Tuples

• 2.2.4 Domains

• 2.2.5

Page 25: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.2 Basics of the Relational ModelTitle Year Length genre

Gone with the wind 1939 231 Drama

Star Wars 1977 124 SciFi

Wayne’s world 1992 95 comedy

Figure 2.3 The Relation Movies

Page 26: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.2 Basics of the Relational Model

• 2.2.5 Equivalent Representations of a Relation

• 2.2.6 Relation Instances

• 2.2.7 Keys of Relations

• 2.2.8 An Example Database Schema

See the three examples

Page 27: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.2.5 Equivalent Representations of a Relation

A relation is a subset (of Cartesian product of Domains), so there is no order among tuples (elements)

Every attribute is named, so if data(element) move with names, there is no order; we often say the such data attribute value pair.

Page 28: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.2.5 Equivalent Representations of a Relation

Year Genre Title length

1977 SciFi Star Wars 124

1992 Comedy Wayne’s World 95

1939 Drama Gone With the Wind 231

Figure 2.4 Another presentation of the relation Movies

Page 29: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.2.6 Relation Instances

• All the relation examples given in the web site are Relation Instances

• Relation is a variable

• Relation instance is a value in the variable.

Page 30: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.2.7 Keys of Relations

• Primary Key

• Secondary Key

• Alternative Key

Page 31: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

Database Schema about Movies

Moviestar (name : string,address : string,gender : char,birthdate : date

)

Movies(title: string;Year : integer,Length : integer,Genre : string,studioName : string,producerC# : integer

)

Page 32: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

StarsIn (MovieTitle: string,Movieyear : integerStarname : string

)

MovieExec (name: string,address : stringcert# : integernetWorth : integer

)

Studio (name: string,address : stringpressC# : integer

)

Page 33: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.2.8 An Example Database Schema

Page 34: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

Two relations of Banking database

acctNo Type Balance

12345 Savings 12000

23456 Checking 1000

34567 Saving 25

firstName LastName Id no Account

Robbie Banks 901-222 12345

Lenna Hand 805-333 12345

Lenna Hand 805-333 23456

The relations accounts

The relations customers

Figure 2.6 Two relations of banking customers

Page 35: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.2.9 Exercises for Section 2.2

Page 36: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.2.8 An Example Database Schema

• See Three Examples

Page 37: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

Two relations of Banking database

acctNo Type Balance

12345 Savings 12000

23456 Checking 1000

34567 Saving 25

firstName LastName Id no Account

Robbie Banks 901-222 12345

Lenna Hand 805-333 12345

Lenna Hand 805-333 23456

The relations accounts

The relations customers

Figure 2.6 Two relations of banking customers

Page 38: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.2.9 Exercises for Section 2.2

Page 39: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.3 Defining a Relation Schema in SQL

• 2.3.1 Relations in SQL

• 2.3.2 Data Types

• 2.3.3 Simple Table Declarations

• 2.3.4 Modifying Relation Schemas

• 2.3.5 Default Values

• 2.3.6 Declaring Keys

• 2.3.7 Exercises for Section 2.3

Page 40: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.3.1 Relations in SQL

Page 41: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.3.2 Data Types

Page 42: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.3.3 Simple Table Declarations

Page 43: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.3.4 Modifying Relation Schemas

Page 44: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.3.5 Default Values

Page 45: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.3.6 Declaring Keys

Page 46: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.3.7 Exercises for Section 2.3

Page 47: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.4 An Algebraic Query Language

• 2.4.1 Why Do We Need a Special Query Language? • 2.4.2 What is an Algebra? • 2.4.3 Overview of Relational Algebra • 2.4.4 Set Operations on Relations • 2.4.5 Projection • 2.4.6 Selection • 2.4.7 Cartesian Product • 2.4.8 Natural Joins • 2.4.9 Theta-Joins • 2.4.10 Combining Operations to Form Queries • 2.4.11 Naming and Renaming • 2.4.12 Relationships Among Operations • 2.4.13 A Linear Notation for Algebraic Expressions • 2.4.14 Exercises for Section 2.4

Page 48: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.4.1 Why Do We Need a Special Query Language?

Page 49: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.4.2 What is an Algebra?

Page 50: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.4.3 Overview of Relational Algebra

Page 51: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.4.4 Set Operations on Relations

Page 52: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.4.5 Projection

Page 53: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.4.6 Selection

Page 54: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.4.7 Cartesian Product

Page 55: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.4.8 Natural Joins

Page 56: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.4.9 Theta-Joins

Page 57: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.4.10 Combining Operations to Form Queries

Page 58: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.4.11 Naming and Renaming

Page 59: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.4.12 Relationships Among Operations

Page 60: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.4.13 A Linear Notation for Algebraic Expressions

Page 61: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.4.14 Exercises for Section 2.4

Page 62: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.5 Constraints on Relations

• 2.5.1 Relational Algebra as a Constraint Language

• 2.5.2 Referential Integrity Constraints• 2.5.3 Key Constraints • 2.5.4 Additional Constraint Examples • 2.5.5 Exercises for Section 2.5 • 2.6 Summary of Chapter 2 • 2.7 References for Chapter 2

Page 63: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.5.1 Relational Algebra as a Constraint Language

Page 64: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.5.2 Referential Integrity Constraints

Page 65: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.5.3 Key Constraints

Page 66: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.5.4 Additional Constraint Examples

Page 67: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.5.5 Exercises for Section 2.5

Page 68: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.6 Summary of Chapter 2

Page 69: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

2.7 References for Chapter 2

Page 70: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

Chapter 3

Design Theory for Relational Databases

Page 71: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.1 Functional Dependencies

• 3.1.1 Definition of Functional Dependency

• 3.1.2 Keys of Relations

• 3.1.3 Superkeys

• 3.1.4 Exercises for Section 3.1

Page 72: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.1.1 Definition of Functional Dependency

Page 73: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.1.2 Keys of Relations

Page 74: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.1.3 Superkeys

Page 75: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.1.4 Exercises for Section 3.1

Page 76: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.2 Rules About Functional Dependencies

• 3.2.1 Reasoning About Functional Dependencies

• 3.2.2 The Splitting/Combining Rule • 3.2.3 Trivial Functional Dependencies • 3.2.4 Computing the Closure of Attributes • 3.2.5 Why the Closure Algorithm Works • 3.2.6 The Transitive Rule • 3.2.7 Closing Sets of Functional Dependencies • 3.2.8 Projecting Functional Dependencies • 3.2.9 Exercises for Section 3.2

Page 77: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.2.1 Reasoning About Functional Dependencies

Page 78: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.2.2 The Splitting/Combining Rule

Page 79: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.2.3 Trivial Functional Dependencies

Page 80: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.2.4 Computing the Closure of Attributes

Page 81: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.2.5 Why the Closure Algorithm Works

Page 82: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.2.6 The Transitive Rule

Page 83: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.2.7 Closing Sets of Functional Dependencies

Page 84: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.2.8 Projecting Functional Dependencies

Page 85: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.2.9 Exercises for Section 3.2

Page 86: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.3 Design of Relational Database Schemas

• 3.3.1 Anomalies

• 3.3.2 Decomposing Relations

• 3.3.3 Boyce-Codd Normal Form

• 3.3.4 Decomposition into BCNF

• 3.3.5 Exercises for Section 3.3

Page 87: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.3.1 Anomalies

Page 88: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.3.2 Decomposing Relations

Page 89: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.3.3 Boyce-Codd Normal Form

Page 90: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.3.4 Decomposition into BCNF

Page 91: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.3.5 Exercises for Section 3.3

Page 92: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.4 Decomposition: The Good, Bad, and Ugly

• 3.4.1 Recovering Information from a Decomposition

• 3.4.2 The Chase Test for Lossless Join

• 3.4.3 Why the Chase Works

• 3.4.4 Dependency Preservation

• 3.4.5 Exercises for Section 3.4

Page 93: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.4.1 Recovering Information from a Decomposition

Page 94: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.4.2 The Chase Test for Lossless Join

Page 95: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.4.3 Why the Chase Works

Page 96: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.4.4 Dependency Preservation

Page 97: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.4.5 Exercises for Section 3.4

Page 98: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.5 Third Normal Form

• 3.5.1 Definition of Third Normal Form

• 3.5.2 The Synthesis Algorithm for 3NF Schemas

• 3.5.3 Why the 3NF Synthesis Algorithm Works

• 3.5.4 Exercises for Section 3.5

Page 99: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.5.1 Definition of Third Normal Form

Page 100: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.5.2 The Synthesis Algorithm for 3NF Schemas

Page 101: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.5.3 Why the 3NF Synthesis Algorithm Works

Page 102: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.5.4 Exercises for Section 3.5

Page 103: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.6 Multivalued Dependencies

• 3.6.1 Attribute Independence and Its Consequent Redundancy

• 3.6.2 Definition of Multivalued Dependencies • 3.6.3 Reasoning About Multivalued

Dependencies • 3.6.4 Fourth Normal Form • 3.6.5 Decomposition into Fourth Normal Form • 3.6.6 Relationships Among Normal Forms • 3.6.7 Exercises for Section 3.6

Page 104: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.6.1 Attribute Independence and Its Consequent Redundancy

Page 105: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.6.2 Definition of Multivalued Dependencies

Page 106: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.6.3 Reasoning About Multivalued Dependencies

Page 107: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.6.4 Fourth Normal Form

Page 108: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.6.5 Decomposition into Fourth Normal Form

Page 109: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.6.6 Relationships Among Normal Forms

Page 110: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.6.7 Exercises for Section 3.6

Page 111: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.7 An Algorithm for Discovering MVD's• 3.7.1 The Closure and the Chase

• 3.7.2 Extending the Chase to MVD's

• 3.7.3 Why the Chase Works for MVD's

• 3.7.4 Projecting MVD's

• 3.7.5 Exercises for Section 3.7

• 3.8 Summary of Chapter 3

• 3.9 References for Chapter 3

Page 112: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.7.1 The Closure and the Chase

Page 113: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.7.2 Extending the Chase to MVD's

Page 114: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.7.3 Why the Chase Works for MVD's

Page 115: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.7.4 Projecting MVD's

Page 116: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.7.5 Exercises for Section 3.7

Page 117: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.8 Summary of Chapter 3

Page 118: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

3.9 References for Chapter 3

Page 119: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

Chapter 4

• High-Level Database Models

Page 120: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.1 The Entity/Relationship Model

• 4.1.1 Entity Sets • 4.1.2 Attributes • 4.1.3 Relationships • 4.1.4 Entity-Relationship Diagrams • 4.1.5 Instances of an E/R Diagram • 4.1.6 Multiplicity of Binary E/R Relationships • 4.1.7 Multiway Relationships • 4.1.8 Roles in Relationships • 4.1.9 Attributes on Relationships • 4.1.10 Converting Multiway Relationships to Binary • 4.1.11 Subclasses in the E/R Model • 4.1.12 Exercises for Section 4.1

Page 121: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.1.1 Entity Sets

Page 122: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.1.2 Attributes

Page 123: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.1.3 Relationships

Page 124: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.1.4 Entity-Relationship Diagrams

Page 125: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.1.5 Instances of an E/R Diagram

Page 126: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.1.6 Multiplicity of Binary E/R Relationships

Page 127: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.1.7 Multiway Relationships

Page 128: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.1.8 Roles in Relationships

Page 129: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.1.9 Attributes on Relationships

Page 130: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.1.10 Converting Multiway Relationships to Binary

Page 131: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.1.11 Subclasses in the E/R Model

Page 132: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.1.12 Exercises for Section 4.1

Page 133: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.2 Design Principles

• 4.2.1 Faithfulness

• 4.2.2 Avoiding Redundancy

• 4.2.3 Simplicity Counts

• 4.2.4 Choosing the Right Relationships

• 4.2.5 Picking the Right Kind of Element

• 4.2.6 Exercises for Section 4.2

Page 134: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.2.1 Faithfulness

Page 135: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.2.2 Avoiding Redundancy

Page 136: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.2.3 Simplicity Counts

Page 137: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.2.4 Choosing the Right Relationships

Page 138: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.2.5 Picking the Right Kind of Element

Page 139: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.2.6 Exercises for Section 4.2

Page 140: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.3 Constraints in the E/R Model

• 4.3.1 Keys in the E/R Model

• 4.3.2 Representing Keys in the E/R Model

• 4.3.3 Referential Integrity

• 4.3.4 Degree Constraints

• 4.3.5 Exercises for Section 4.3

Page 141: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.3.1 Keys in the E/R Model

Page 142: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.3.2 Representing Keys in the E/R Model

Page 143: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.3.3 Referential Integrity

Page 144: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.3.4 Degree Constraints

Page 145: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.3.5 Exercises for Section 4.3

Page 146: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.4 Weak Entity Sets

• 4.4.1 Causes of Weak Entity Sets

• 4.4.2 Requirements for Weak Entity Sets

• 4.4.3 Weak Entity Set Notation

• 4.4.4 Exercises for Section 4.4

Page 147: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.4.1 Causes of Weak Entity Sets

Page 148: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.4.2 Requirements for Weak Entity Sets

Page 149: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.4.3 Weak Entity Set Notation

Page 150: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.4.4 Exercises for Section 4.4

Page 151: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.5 From E/R Diagrams to Relational Designs

• 4.5.1 From Entity Sets to Relations

• 4.5.2 From E/R Relationships to Relations

• 4.5.3 Combining Relations

• 4.5.4 Handling Weak Entity Sets

• 4.5.5 Exercises for Section 4.5

Page 152: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.5.1 From Entity Sets to Relations

Page 153: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.5.2 From E/R Relationships to Relations

Page 154: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.5.3 Combining Relations

Page 155: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.5.4 Handling Weak Entity Sets

Page 156: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.5.5 Exercises for Section 4.5

Page 157: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.6 Converting Subclass Structures to Relations

• 4.6.1 E/R-Style Conversion

• 4.6.2 An Object-Oriented Approach

• 4.6.3 Using Null Values to Combine Relations

• 4.6.4 Comparison of Approaches

• 4.6.5 Exercises for Section 4.6

Page 158: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.6.1 E/R-Style Conversion

Page 159: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.6.2 An Object-Oriented Approach

Page 160: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.6.3 Using Null Values to Combine Relations

Page 161: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.6.4 Comparison of Approaches

Page 162: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.6.5 Exercises for Section 4.6

Page 163: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.7 Unified Modeling Language

• 4.7.1 UML Classes • 4.7.2 Keys for UML classes • 4.7.3 Associations • 4.7.4 Self-Associations • 4.7.5 Association Classes • 4.7.6 Subclasses in UML • 4.7.7 Aggregations and Compositions • 4.7.8 Exercises for Section 4.7

Page 164: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.7.1 UML Classes

Page 165: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.7.2 Keys for UML classes

Page 166: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.7.3 Associations

Page 167: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.7.4 Self-Associations

Page 168: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.7.5 Association Classes

Page 169: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.7.6 Subclasses in UML

Page 170: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.7.7 Aggregations and Compositions

Page 171: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.7.8 Exercises for Section 4.7

Page 172: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.8 From UML Diagrams to Relations

• 4.8.1 UML-to-Relations Basics

• 4.8.2 From UML Subclasses to Relations

• 4.8.3 From Aggregations and Compositions to Relations

• 4.8.4 The UML Analog of Weak Entity Sets

• 4.8.5 Exercises for Section 4.8

Page 173: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.8.1 UML-to-Relations Basics

Page 174: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.8.2 From UML Subclasses to Relations

Page 175: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.8.3 From Aggregations and Compositions to Relations

Page 176: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.8.4 The UML Analog of Weak Entity Sets

Page 177: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.8.5 Exercises for Section 4.8

Page 178: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.9 Object Definition Language

• 4.9.1 Class Declarations • 4.9.2 Attributes in ODL • 4.9.3 Relationships in ODL • 4.9.4 Inverse Relationships • 4.9.5 Multiplicity of Relationships • 4.9.6 Types in ODL • 4.9.7 Subclasses in ODL • 4.9.8 Declaring Keys in ODL • 4.9.9 Exercises for Section 4.9

Page 179: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.9.1 Class Declarations

Page 180: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.9.2 Attributes in ODL

Page 181: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.9.3 Relationships in ODL

Page 182: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.9.4 Inverse Relationships

Page 183: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.9.5 Multiplicity of Relationships

Page 184: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.9.6 Types in ODL

Page 185: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.9.7 Subclasses in ODL

Page 186: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.9.8 Declaring Keys in ODL

Page 187: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.9.9 Exercises for Section 4.9

Page 188: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.10 From ODL Designs to Relational Designs

• 4.10.1 From ODL Classes to Relations • 4.10.2 Complex Attributes in Classes • 4.10.3 Representing Set-Valued Attributes• 4.10.4 Representing Other Type Constructors• 4.10.5 Representing ODL Relationships• 4.10.6 Exercises for Section 4.10 • 4.11 Summary of Chapter 4 • 4.12 References for Chapter 4

Page 189: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.10.1 From ODL Classes to Relations

Page 190: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.10.2 Complex Attributes in Classes

Page 191: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.10.3 Representing Set-Valued Attributes

Page 192: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.10.4 Representing Other Type Constructors

Page 193: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.10.5 Representing ODL Relationships

Page 194: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.10.6 Exercises for Section 4.10

Page 195: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.11 Summary of Chapter 4

Page 196: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.

4.12 References for Chapter 4

Page 197: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.
Page 198: CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.