
22C:005 Problem Solving and Computing, Fall 2000
Lab 9:
Due date: Tuesday, November 7th, at lab.
To hand in:
• A diskette containing the modified Customer database.
• Specified printouts.
• An ERD with your solution to problem 16, page RD 23.
PART I: Problem solving on database design
This is one of the review questions at the end of the Appendix on database design
in the textbook.
16) The State and Capital relations, shown in Figure 5, are described as follows:
State (StateAbbrev, StateName, EnteredUnionOrder, StateBird, StatePopulation)
Capital (CapitalName, StateAbbrev, YearDesignated, PhoneAreaCode,
CapitalPopulation)
Foreign key: StateAbbrev to State relation
Add the attribute CountyName for the county or counties containing the state
capital to this database, justify where you placed it (that is, in an existing relation
or in a new one), and draw the entity-relationship diagram for all the entities.
The counties for the state capitals shown in Figure 5 are Travis and Williamson
counties for Austin TX; Hartford county for Hartford CT; Clinton, Eaton and
Inghman counties for Lansing MI; Davidson county for Nashville TN; Hughes
county for Pierre SD.