Docsity

Database Design: Adding a New Attribute and Creating MS Access Objects, Lab Reports of Computer Science

Toggle sidebar
bg1
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.
pf3

Partial preview of the text

Download Database Design: Adding a New Attribute and Creating MS Access Objects and more Lab Reports Computer Science in PDF only on Docsity!

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.

PART II: MS Access

Materials needed: 3 1/2 floppy diskette.

  1. Download the file Customer.mdb to your diskette.
  2. Start Access and open the Customer database.
  3. Explore: In the MS Access Help window, display and then click the Contents tab. (Hint: Click any topic displayed in the Office Assistant list box (light bulbs!) to open the Microsoft Access Help window.) You may need to click on the Show/Hide icon at the top left corner of the window to display Contents. Double-click the topic "Creating and working with Databases." Click the topic: "Databases: What they are and how they work," and then click the related graphic for the topic. Read the displayed information. When finished, close the window to return to the Contents tab. repeat this procedure for the similarly worded topics for tables, queries, forms and reports. When finished reading all the topics, close the Microsoft Access help window.
  4. Explore: Use the Office Assistant to ask the following question: "How do I rename a table?". Choose the topic "Rename a database object" and read the displayed information. Close the Microsoft Access Help window and hide the Office Assistant. Then, in the Customer database, rename the Table1 table as Customers.
  5. Open the Customers table.