Sie sind auf Seite 1von 3

TUTORIAL PROJECT

When you volunteered to work with a local Habitat for Humanity group, you were assigned to maintain a
database pertaining to current projects. Habitat for Humanity builds houses for families who cannot afford
to buy a house themselves. Each house is assigned a House ID which is unique to that house. As people
from the community volunteer, they are assigned to one of the house projects. It is your job to keep up
with this data pertaining to house projects and their assigned volunteers. This is a new database that you
must create and then begin accumulating the data.
1. Start Access and open a new Blank database named Habitat Houses.
2. Create a table, Houses, that will contain the following fields.

Field Name

Data Type

Field Size

Description

House ID

Text

Uniquely identifies the house project and is


the primary key

Address

Text

30

Address of the house

Project Manager

Text

15

Name of the manager of the project

Start Date

Date

Default

Date the project was started

End Date

Date

Default

Estimated completion date

3. Create a second table, Volunteers, that will contain the following fields.

Field Name

Data Type

Field Size

Description

Volunteer ID

Text

Uniquely identifies the volunteer and is the


Primary Key

Last Name

Text

20

Volunteers Last Name

First Name

Text

20

Volunteers First Name

Phone

Text

10

Volunteers Phone Number

4. Each of the tables above has a primary key that will identify each record in the table.
Now, you must determine a field that will establish a relationship between the two tables.
Each volunteer works on only one house at a time so the relationship will be a One-ToMany relationship. You will need to add a field that will serve as the common field on
which the relationship will be formed. Look at your two tables and determine what you
need to add. If you have trouble, look at the data that you will add to the table in Step #
7. This will give you a hint as to what you need to add to your table.
5. Add the field needed for the relationship in the Volunteers table. Open the relationships
window and establish a relationship between the two tables. Choose the option to
Enforce Referential Integrity, Cascade Updates, and Cascade Deletes.
6.

Add the following records to the Houses table.

House ID

Address

Project Manager

Start Date

End Date

SP0105

1467 Elm Street

Davis

05/18/03

09/01/03

SP0106

8906 Franklin Ave.

Dorcey

04/01/03

08/01/03

SP0107

8907 Franklin Ave.

Dorcey

04/01/03

08/15/03

SP0108

8908 Franklin Ave.

Dorcey

04/30/03

09/15/03

SP0109

8910 Franklin Ave.

Dorcey

04/30/03

09/30/03

SP0104

1466 Elm Street

Davis

04/30/03

09/15/03

SP0102

1465 Elm Street

Davis

04/15/03

09/30/03

SP0101

1464 Elm Street

Davis

05/01/03

08/15/03

SP0120

789 Chester Ave.

Povoloski

05/01/03

08/15/03

SP0121

790 Chester Ave.

Povoloski

05/01/03

08/15/03

7.

Add the following records to the Volunteers table.

Volunteer ID

Last Name

First Name

Phone

House ID

VO197

Crenshaw

Bill

890-7856

SP0107

VO198

Carpenter

Candy

907-8967

SP0120

VO199

Tindell

Don

890-8744

SP0120

VO200

Smithson

Sarah

890-5633

SP0101

VO201

Brooks

Hannah

890-7822

SP0121

VO202

Brooks

Austin

890-7822

SP0121

VO203

Stephens

Philip

997-5645

SP0104

VO204

Scott

Tamara

997-3321

SP0107

VO205

Richards.

Tim

997-0009

SP0109

VO206

Soderman

Pam

897-1234

SP0101

8. Add a record of your choosing to the Houses table. Be sure the House ID is unique.
9. Add yourself to the table using data of your choosing. Be sure the new record is assigned
to a House ID that already exists and make sure your Volunteer ID is unique.
10. Close the database and close Access.

Das könnte Ihnen auch gefallen