CS 386 Introduction to Database Systems

Sample Database

Spy database: Description ;  Schema

A text file of commands to create the database in PostgreSQL ( If you have your own database, run "psql -e < SpyDB.sql" from your shell):  SpyYou may need to customize null values.

How to Access these databases on PostgreSQL

You can access an installation of PostgreSQL via a command line or GUI interface.  Both are explained on http://www.cat.pdx.edu/web/database-services.html . On that page you can also learn how to get your own Postgres database on the CECS server.  In order to access the shared copies of the databases that we will all use, there are a few changes to those directions.

   % psql –h db.cecs –U introdb_readonly introdb_X

where X is one of {spy, sailors, library}, and use the password introdb .

Technical Information

PostgreSQL information:

Other Resources: