Assignment #1 Fall 2009
This preview shows half of the first page. to view the full 2 pages of the document.
CS348: Introduction to Database Systems
Assignment 1 (due Friday, Oct. 23rd at 5:00 pm)
Overview: For the ﬁrst question, you must use your Unix accounts and DB2 to compose and evaluate a number of
SQL queries for a database that records information about courses. The schema for the database is illustrated by the
following relational database schema that includes an indication of primary and foreign key constraints in the manner
discussed in class. Sample commands for deﬁning the base tables for this schema can be downloaded from the course
web site. Note that the schema stores information about both ongoing and past classes for a course. Also note that no
marks are recorded for any enrollment of an ongoing class, and that, for a past class, a mark is recorded for each of its
enrollments. Finally, you may assume that each class has at least one enrollment.
You're Reading a Preview
Unlock to view full version