Database Assignment

Assignment 1 -- SQL as a Data Manipulation Language

Due: By class time Friday, February 20 2004


Assignment 2 -- Practice writing Queries

Due: By class time Monday, March 1, 2004


Assignment 3 Database Design Assignment

Due: March 8, 2004

Suppose you are given the following business rules and first attempt at a DB design to form the basis for your database design of a problem. The database must enable the manager of a company dinner club to mail invitations to the club's members, to plan the meals, to keep track of who attends the dinners, what dinners were served when and so on.

Because the manager is not a database expert, the first attempt at creating the database uses the following structure (all the attributes in one relation):

Attribute name Sample value
Member_num214
Member_nameAlice B. VanderVoort
Member_address325 Meadow Park
Member_cityMurkywater
Member_zip59759
Invite_num8
Invite_date8/1/97
Accept_date8/9/97
Dinner_date8/23/97
Dinner_attendY
Dinner_code5
Dinner_descSea Delight
Entree_code3
Entree_descStuffed crab
Dessert_code8
Dessert_descChocolate mousse with rasberry sauce

You have two tools to design a database, the ER diagram and normalization from a universal relation. Use both tools as specified below. Hopefully you will come up with the same set of tables.

Part I -- the ER Diagram

  1. Draw the ER diagram.
    • Rmember your first pass at designing this way is to include all the attributes of each entity, then find the relationships by attributes that refer to other entities.
    • Be sure to include whether the relationships are partial or total, and the cardinality ratio.
  2. Map your ER diagram to a relational schema (tables).

Part II -- Normalization of the Universal Relation

  1. Given the above structure, draw its dependency diagram. Label all transitive and/or partial dependencies.
  2. Normalize the diagram above to produce dependency diagrams in are in 3NF.