CSC 240               Spring 2006                    Assignment 2 – Data Modeling

 

Assigned: 02/15/06

Due: Start of Class on 02/20/06

 

This is an individual assignment.  You may ask teammates, other class members, and random people (only) the same types of questions I would answer. You must develop your own individual answers.

 

Task:

               Answer the questions below:

 

1.      In keeping track of politicians and offices, we have identified POLITICIAN as being in a One to One relationship to OFFICE (relationship: POLITICIAN holds OFFICE). Business rules suggest that there are POLITICIANs who are not in OFFICE, and that all OFFICEs have a POLITICIAN holding it. In designing tables, where should the foreign key linking the two tables be put? Explain.

 

2.      In keeping track of radio stations and DJs, we have identified RADIOSTATION as being in a One to Many relationship to DJ (relationship: RADIOSTATION employs  DJ).  In designing tables, where should the foreign key linking the two tables be put? Explain.

 

3.      Suppose that you are modeling for a publisher such as Prentice-Hall, and that Prentice-Hall wants to keep track of AUTHORs and the BOOKs that the authors have written.  What do you think the connectivity between AUTHOR and BOOK is? Briefly explain why.