CS 365: Database Systems

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

Office Hours:
When
Who Where
Wednesday 8:10am - 10:00am Alex 14-210
Friday 8:10pm - 10:00am Alex 14-210

Additional appoinments: send email.


News and Notes

Old News and Notes

Course Materials

Syllabus Postscript PDF
my.cnf template my.cnf

Labs

Lab 1, Part 1 Due: April 10 Why databases? Postscript PDF Lab Data [April 4, 2017]
Lab 1, Part 2 Due: April 10 Why databases? Postscript PDF Lab Data [April 6, 2017]
Lab 2 Due: April 14/April 17 SQL DDL, DML Postscript PDF [April 11, 2017]
Lab 3-1 Due: April 21 SQL DDL, DML Postscript PDF [April 21, 2017]
Lab 3-2 Due: April 28 SQL DDL, DML Postscript PDF [April 21, 2017]
Lab 4 Due: May 12 SQL SELECT Postscript PDF [May 2, 2017]
Lab 5 Due: May 19 SQL SELECT and Counting Postscript PDF [May 15, 2017]
Lab 6 Due: May 26 (May 28) Counting and grouping Postscript PDF [May 22, 2017]
Lab 7 Due: June 5 Complex SQL Queries Postscript PDF [May 26, 2017]
Lab 8 Due: June 14 JDBC Application Postscript PDF [November 28, 2016]

oracle2mysql.py: DATE/TIME conversion functions from Oracle to MySQL
convertdate.py: sample test script for oracle2mysql.py functions.

JDBCTestMysql1.java
mysql Connector/J driver
ojdbc14.jar (Oracle JDBC driver)

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
receipts.csv



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





STUDENTS.zip
[October 1, 2007]
KATZENJAMMER Dataset (Version 2.0)
README
Albums.csv
Band.csv
Instruments.csv
Performance.csv
Songs.csv
Tracklists.csv
Vocals.csv
KATZENJAMMER.zip
[September 21, 2016]
MARATHON Dataset
README
marathon.csv






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




AIRLINES.zip
[November 19, 2007]
WINE Dataset
README
appellations.csv
grapes.csv
wine.csv




WINE.zip
[March 27, 2011]
INN Dataset
README
Rooms.csv
Reservations.csv





INN.zip
[April 6, 2011]

Logs

Date Logs Contents
May 31 May31.out JOIN syntax, set difference, intersection
May 24 May24.out Nested Queries
May 22 May22.out Nested Queries
May 19 May19.out GROUP BY
May 17 May17.out GROUP BY
May 15 May15.out GROUP BY and UNION
May 10 May12.out Aggregations
May 8 May8.out SELECT
May 5 May5.out SELECT and relational algebra
April 21 April21.out UPDATE, ALTER TABLE
April 19 April19.out ALTER TABLE, DELETE, UPDATE
April 17 April17.out INSERT, this did not work out well
April 14 April14.out CREATE TABLE, INSERT, DROP TABLE
April 12 April12.out Intro to CREATE TABLE

Homeworks

Homework 1 Due: May 8/May 10, 2017 Postscript PDF [April 26, 2017]

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 [January 13, 2015]
Lecture 5 Work with MySQL: Part 1 Postscript PDF [January 13, 2015]
Lecture 5-1 Work with MySQL: Part 2 Postscript PDF [January 15, 2015]
Lecture 6 Relational Algebra Postscript PDF [October 3, 2007]
Lecture 7 MySQL data and time types and built-in functions Postscript PDF [February 10, 2015]
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 JOIN syntax, Outer Joins Postscript PDF [November 20, 2012]
Lecture 14 Database Views Postscript PDF [November 28, 2016]


Other Materials

SQL-92

Oracle

General Database Resources


September 21, 2016, dekhtyar at csc.calpoly.edu