Personal tools
You are here: Home Classes Spring 2006 CS 311 hw8.html
Document Actions

hw8.html

by bob last modified 2006-05-08 10:02

CS 311: Databases

Constraints and Queries for your Project
(Homework 8)

due on April 24

This is the fourth of five assignments for our semester-long project.

There are two parts to this assignment. For the first part you are to create one Check constraint and one Trigger. These should be reasonable constraints to put on your databases. Fore example, the Check constraint might enforce a natural domain constraint for your data. The trigger might update an otherwise non-updatable view (by modifying its base tables). You might also use the trigger to prevent undesirable updates, such as removing any insertions with improper values. Try to use the trigger to do something you couldn't otherwise do.

The second part of the assignment is to make a list of 8 natural queries for your database. For each query I would like a comment that says in English what the query is looking for, then the SQL code for the query.

Put all of this in one SQL file (with name "foobar.sql") and submit it via handins by the end of Monday, April 24.

 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: