Docsity

Database Systems: Final Review - Fall 2007 by Dr. Yicheng Tu - Prof. Yicheng Tu, Study notes of Deductive Database Systems

Toggle sidebar
bg1
EEL4852 Final review
Fall 2007
Dr. Yicheng Tu
I. Chapter 1 - Introduction
1. Desirable characteristics of database systems (advantages over file systems)
2. Instances and schemas
II. Chapter 2 - Relational Model
1. Relational algebraic operations (focus on rules/assumptions)
a. Select
b. Project (both regular and generalized)
c. Union
d. Set difference/intersection
e. Cartesian product
f. Rename
g. Natural join, theta join
h. Division
i. Aggregate
2. Database modification
a. Deletion
b. Insertion
c. Updating
III. Chapter 3 – SQL
1. Basic structure of SQL queries
a. 'select', 'from', and 'where' clauses
b. Their algebraic equivalence
c. Tuple variables in SQL
d. Maintain/eliminate duplicates
e. Tuple ordering
2. SQL set operations
a. Union
b. Intersection
c. Except
3. Aggregate functions
a. What are the different types of aggregates
b. 'group by' and 'having' clauses
4. Nested subqueries
a. Set membership and comparison
b. Testing for empty relations and the absence of duplicate tuples
IV. Chapter 5 – Other Relational Languages
1. Query by example (QBE)
a. Indication of a particular attribute’s value being displayed
b. Negation operator
c. Queries involving more than one relation
V. Chapter 6 – ER design
1. Model components
a. Entity sets
b. Relationship sets
2. Constraints
a. Cardinalities: one/many-to-one/many
b. Participation: total, partial
pf3

Partial preview of the text

Download Database Systems: Final Review - Fall 2007 by Dr. Yicheng Tu - Prof. Yicheng Tu and more Study notes Deductive Database Systems in PDF only on Docsity!

EEL4852 Final review

Fall 2007

Dr. Yicheng Tu

I. Chapter 1 - Introduction

  1. Desirable characteristics of database systems (advantages over file systems)
  2. Instances and schemas

II. Chapter 2 - Relational Model

  1. Relational algebraic operations (focus on rules/assumptions) a. Select b. Project (both regular and generalized) c. Union d. Set difference/intersection e. Cartesian product f. Rename g. Natural join, theta join h. Division i. Aggregate
  2. Database modification a. Deletion b. Insertion c. Updating

III. Chapter 3 – SQL

  1. Basic structure of SQL queries a. ' select' , ' from' , and ' where' clauses b. Their algebraic equivalence c. Tuple variables in SQL d. Maintain/eliminate duplicates e. Tuple ordering
  2. SQL set operations a. Union b. Intersection c. Except
  3. Aggregate functions a. What are the different types of aggregates b. ' group by' and ' having' clauses
  4. Nested subqueries a. Set membership and comparison b. Testing for empty relations and the absence of duplicate tuples

IV. Chapter 5 – Other Relational Languages

  1. Query by example (QBE) a. Indication of a particular attribute’s value being displayed b. Negation operator c. Queries involving more than one relation

V. Chapter 6 – ER design

  1. Model components a. Entity sets b. Relationship sets
  2. Constraints a. Cardinalities: one/many-to-one/many b. Participation: total, partial
  1. ER-diagram

VI. Chapter 7 – Relational DB design

  1. Features of good relational DB design a. Redundancy b. Lossless decomposition
  2. Functional dependency a. Closure of FD sets
  3. Atomicity and 1st^ Normal Form
  4. Boyce-Codd Normal Form
  5. 3 rd^ Normal Form

VII. Chapter 11 – Storage and File Structure

  1. Storage a. The pyramid b. Hard disk performance measurements: access time, seek time, latency
  2. RAID a. Why do we need it? Reliability and performance b. Strategies: redundancy and striping c. RAID 0, 1, 5
  3. Sequential file organization, free lists, deletion/insertion

VIII. Chapter 12 – Indexing

  1. Basics a. Primary/secondary index b. Dense/sparse index
  2. B+-Tree Index Files a. What’s in a leaf node/ non-leaf node? How many of them? Fanout. b. Insertion c. Deletion d. Search a B+-tree
  3. B-Tree Index Files
  4. Hash index a. Hash function, overflow, buckets, overflow chaining b. uniform/random hash functions
  5. Static Hashing
  6. Dynamic Hashing

IX. Chapter 13 – Query Processing

  1. Query cost measurements
  2. Selection algorithms a. File scan, index scan, A1-A b. Their costs
  3. Join algorithms and their costs a. Nested-loop join b. Block nested-loop join c. Indexed nested-loop join d. Merge-join e. Hash-join

X. Chapter 14 – Query Optimization

  1. Transformation of relational expressions a. Equivalence rules 1-10, focus on first 8 b. Proof of rule 11
  2. Left deep join
  3. Basics of statistics estimation