CS320 Project

Project part 3: Implementing Schema and Collecting Data

100 points

 


Step 3 of Your DB

If you have modified your design because of feedbacks from the instructor (or any other reason), please explain the reasons in your report.

  1. Write an SQL database schema for your DB, and input into the PostgreSQL database that has been created for your team. Use the CREATE TABLE commands described in class.

    Hand in a file with the commands you use to create your database schema. Show the response of PostgreSQL to a request to describe each of your relation schemas. For example, to see the schema for relation Foo type

     \d(Foo);
  2. Gather a significant volume of data for your database and bulk load it into your relations. You should use real data for your DB as much as possible. Write a program in any programming language you like to collect and process the data, then load the data into your DB relations. Your program will need to transform the data into files of records conforming to your DB schema. If certain real data is not available, explain the reasons and write a program to fabricate a large amount of data: Your software will produce records that are either random or structured (for instance, sequential) in accordance with your schema. It's crucial that the data you create resembles genuine data. The aim of producing vast quantities of data is to allow experimentation with a realistically-sized database, as opposed to a small-scale or "toy" database. 

    When writing a program to fabricate data, there are two important points to keep in mind:

    Turn in your program code for generating or transforming data, a small sample of the records generated for each relation (5 or so records per relation), and a script showing the loading of your data into the database.