Beruflich Dokumente
Kultur Dokumente
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
Address
Text
30
Project Manager
Text
15
Start Date
Date
Default
End Date
Date
Default
3. Create a second table, Volunteers, that will contain the following fields.
Field Name
Data Type
Field Size
Description
Volunteer ID
Text
Last Name
Text
20
First Name
Text
20
Phone
Text
10
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.
House ID
Address
Project Manager
Start Date
End Date
SP0105
Davis
05/18/03
09/01/03
SP0106
Dorcey
04/01/03
08/01/03
SP0107
Dorcey
04/01/03
08/15/03
SP0108
Dorcey
04/30/03
09/15/03
SP0109
Dorcey
04/30/03
09/30/03
SP0104
Davis
04/30/03
09/15/03
SP0102
Davis
04/15/03
09/30/03
SP0101
Davis
05/01/03
08/15/03
SP0120
Povoloski
05/01/03
08/15/03
SP0121
Povoloski
05/01/03
08/15/03
7.
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.