CS 365: Database Systems
Fall 2007

Instructor: Alexander Dekhtyar, dekhtyar@csc.calpoly.edu, 14-209

Office Hours:
When
Who Where
Monday Alex 14-209
Tuesday 11:00am - 12:00pm Alex 14-209
Wednsday 9:00am - 12:00pm Alex 14-209
Thursday 11:00am - 12:00pm Alex 14-209

Additional appoinments: send email.


News and Notes

Old News and Notes

Course Materials

Syllabus Postscript PDF

Labs

Lab 1, Part 1 Due: September 25 : Why databases? Postscript PDF
Lab 1, Part 2 Due: September 27 : Why databases? Postscript PDF
Lab 2 Due: October 9/ October 4 (early bird special) : SQL DDL, DML, SQL*plus Postscript PDF
Lab 3 Due: October 11 : SQL DDL, DML, SQL*plus Postscript PDF
Lab 4 Due: October 16 SQL: simple queries Postscript PDF
Lab 4: Part 2 Due: October 23 SQL: simple queris Postscript PDF
Lab 5: Due: October 25 (no submission needed) SQL Postscript PDF
Lab 6: Due: November 6 SQL Postscript PDF
Lab 7: Due: November 15 JDBC Postscript PDF
Lab 8: Due: November 29 PL/SQL Postscript PDF

Lab Data
Lab 1: Part 1 students.txt [September 10, 2007]
Lab 1: Part 2 list.txt teachers.txt [September 25, 2007]

Lab Tests
Lab 1: Public Test Suit Script for Java implementations Results [September 11, 2007]
Lab 1 Private Test Suit script [October 1, 2007]
Lab 1, part 2 Private test suit script [October 1, 2007]
Lab 2 expected results for part 3 For STUDENTS dataset For BAKERY dataset [October 2, 2007]
Lab 2 Test scripts STUDENTS dataset BAKERY dataset [October 5, 2007]
Lab 2 Test scripts CSU dataset CARS dataset [October 5, 2007]
Lab 4 Tuple counts BAKERY dataset CSU dataset [October 23, 2007]
Lab 4 Tuple counts Final Tuple count: all datasets [November 15, 2007]
Lab 6 Answers BAKERY dataset CARS dataset [November 27, 2007]
Lab 6 Answers CSU dataset MARATHON dataset [November 27, 2007]
Lab 6 Answers STUDENTS dataset [November 27, 2007]

JDBCTest.java
classes12.jar (JDBC driver)

PL/SQL examples
example1.sql Inserts a row into table [November 13, 2007]
example2.sql Simple use of cursor [November 13, 2007]
example4.sql Cursor + loop [November 13, 2007]
example5.sql for-loop for cursors [November 13, 2007]
example3.sql paremeterized cursor [November 13, 2007]

Course Datasets

CSU Dataset
README
Campuses.csv
csu-fees.csv
degrees.csv
discipline-enrollments.csv
disciplines.csv
enrollments.csv
faculty.csv
CSU.zip
[September 26, 2007]
CARS Dataset
README
car-makers.csv
car-names.csv
cars-data.csv
continents.csv
countries.csv
model-list.csv
cars.desc
CARS.zip
[September 26, 2007]
BAKERY Dataset
README
customers.csv
goods.csv
items.csv
reciepts.csv



BAKERY.zip
[October 1, 2007]
STUDENTS Dataset
README
list.csv
teachers.csv





STUDENTS.zip
[October 1, 2007]
MARATHON Dataset
README
marathon.csv






MARATHON.zip
[October 8, 2007]
AIRLINES Dataset
README
airlines.csv
airports100.csv
flights.csv




AIRLINES.zip
[November 19, 2007]

Homeworks

Homework 1 Due: October 16 Postscript PDF [October 8, 2007]

Homework Solutions

Lecture Notes

Lecture 1 Why Databases ? Postscript PDF [September 14, 2007]
Lecture 2 Databases in a Nutshell Postscript PDF [September 16, 2007]
Lecture 3 Relational Database Model Postscript PDF [September 20, 2007]
Lecture 4 SQL DDL and DML Postscript PDF [September 16, 2007]
Lecture 5 Oracle's SQL*Plus client Postscript PDF [September 16, 2007]
Lecture 6 Relational Algebra Postscript PDF [October 3, 2007]
Lecture 7 SQL DATE type and built-in functions Postscript PDF [October 8, 2007]
Lecture 8 SQL SELECT Postscript PDF [October 8, 2007]
Lecture 9 SQL: Aggregation Operators Postscript PDF [October 23, 2007]
Lecture 10 SQL: GROUP BY and HAVING clauses Postscript PDF [October 25, 2007]
Lecture 10: Example GROUP BY and HAVING clauses Postscript PDF [October 29, 2007]
Lecture 11 SQL: Nested Queries Postscript PDF [October 29, 2007]
Lecture 12 JDBC Postscript PDF [November 5, 2007]
Lecture 13 PL/SQL: Part 1 Postscript PDF [November 8, 2007]
Lecture 14 PL/SQL: Part 2 Postscript PDF [November 13, 2007]
Lecture 15 PL/SQL: Part 3 Postscript PDF [November 20, 2007]


Other Materials

SQL-92

Oracle

General Database Resources


August 28, 2007, dekhtyar at csc.calpoly.edu