The Principle of Database System (CS 022)
Instructor :
Room 3-533, SEIEE
Building
Office time:
Tuesday 13.30~14.30
TextBook: a first course in database systems (third edition)
written by Jeffrey D.Ullman, Jennifer Widom, from Stanford University
The English reprint edition (英文影印版) can be bought through China-Pub or from other book stores.
Reference books:
Database
System Concepts by Abraham Silberschatz,
et al (机械工业出版社)
(Seventh edition) from Yale
University
Readings in Database
Systems (fifth edition) edited by Peter Bailis,
Joseph M.Hellerstein, Michael Stonebraker
Introduction: The lecture will introduce some basic
concepts, components and features of database systems. It is an introduction to
the design and use of database systems. Many models and query languages will
also discussed. Entity-relationship data model, relational data model,
semi-structure model and object-oriented data models will be learned in the
lecture. Query languages include relational algebra, SQL (Structured Query
Language) and Datalog. The aim of this lecture is to
know the overview of database systems, to learn how to design many database
applications and use SQL in different environments. New database systems will
also be introduced at the end of the semester, such as NOSQL and NEWSQL.
Course Topics and
Schedule (change every year):
Week |
Topics |
Slides |
Readings & Homework |
1 |
Introduction to the course and database system |
Textbook 1.2 |
|
2 |
Introduction to
the relational model |
||
3 |
Relational algebra |
Exercise 2.3.1 Exercise 2.4.1 a,f,h Exercise 2.5.1 b or |
|
4 |
Normal forms |
|
|
5 |
Multivalued dependency & reasoning. |
|
Exercise 3.2.1 Exercise 3.5.2 Exercise 3.6.3 a,c or |
6 |
ER Model |
|
Textbook 4.6.1 and 4.6.2 |
7 |
UML/ODL |
Classroom exercises: Exercise 4.2.1 Exercise
4.4.1 Exercise 4.4.2 |
|
8 |
A logic
language: datalog |
|
Exercise 5.3.1 a,f,h Exercise 5.4.1 g or |
9 |
SQL:
introduction and query Subqueries &
aggregations |
Classroom Exercises for Chapter 6: |
|
10 |
SQL JoinOperation & Modification, Transactions in SQL |
or Exercise 6.2.2 e) Exercise 6.3.1 c) Exercise 6.4.6 i) Exercise 6.6.4 Textbook 7.5 |
|
11 |
Many kinds of
Constraints Triggers, Views and Indexes |
Chapter 8-views and Indexes |
|
12 |
EmbededSQL & Stored
Modules Database
Connection Libraries. NOSQL |
Python&SQLite by Bao,Weiming NOSQL data model |
Homework of chapter 9: 提交2~4页报告,叙述SQLite与Python或其它语言的连接 |
13 |
Authorization Recursion in SQL Introduction to
Object-relational model |
Textbook 10.2 Textbook 10.6,10.7 |
|
14 |
Online Analytic processing |
|
Classroom Exercises: mydbdata Exercise Solutions: OLAPqueries |
15 |
XML model (DTD,
XML schema) |
Chapter 11-XMLModel, Classroom exercises |
Textbook 11.4 |
16 |
Introduction to Xpath,Xquery,XSLT Review & QA |
Chapter 12-QueryXML |
Textbook 12.1 |
Detailed schedule
and slides in: http://oc.sjtu.edu.cn
Grading Scheme
1.
Homework
& attendance (35%)
2.
Final Examination
(65%)