Assignment 1-Creating A Database Using Microsoft Access
Assignment 1-Creating A Database Using Microsoft Access
Assignment 1
Points: 10 %
Group: Maximum 3 members
Due date: Oct 10, 2023
Late submission: Oct 17 (with a 20% deduction of the grade)
1. Only soft copy in PDF to the Black board (One student from the group need to
submit). Use the cover page for your names and IDs.
Cover Page
Name ID
1.
2.
3.
We will now build a database for the Ship and Captain situation. This
is a One-To-One relationship:
1 1
Ship Captain
Muhammad Rafiq 2
PMU- MIS Department - Database Management - Handout#1
Muhammad Rafiq 3
PMU- MIS Department - Database Management - Handout#1
Note:
This will create a file with an extension of .accdb.
5. Change to Design view:
Muhammad Rafiq 4
PMU- MIS Department - Database Management - Handout#1
Muhammad Rafiq 5
PMU- MIS Department - Database Management - Handout#1
Muhammad Rafiq 6
PMU- MIS Department - Database Management - Handout#1
Muhammad Rafiq 7
PMU- MIS Department - Database Management - Handout#1
10. Now add the Foreign Key field to the Captain table and save
this. The Foreign Key is ShipID.
Note:
The Foreign Key field should have the same Field Name, Field Type
and Field Size as it has in the Ship table:
Muhammad Rafiq 8
PMU- MIS Department - Database Management - Handout#1
Muhammad Rafiq 9
PMU- MIS Department - Database Management - Handout#1
Muhammad Rafiq 10
PMU- MIS Department - Database Management - Handout#1
Drag and drop ShipID from the table where it is the Primary
Key to the side where it is the Foreign Key:
Drag
And
Drop
Muhammad Rafiq 11
PMU- MIS Department - Database Management - Handout#1
Referential Integrity
Before you enter data records, check that you have created the
Relationship correctly.
Muhammad Rafiq 12
PMU- MIS Department - Database Management - Handout#1
CaptainID FirstName Family Other Gender DOB Salary Joined Married? ShipID
C5 David Campbell M 27/12/1948 50000 1/4/1985 Y S3
C8 Fatima Al Shehhi Sultan F 4/11/1978 20000 5/7/1999 N S7
C9 Zainab Yousef Abdulla F 3/8/1980 24000 6/3/2000 Y
CaptainID FirstName Family Other Gender DOB Salary Joined Married? ShipID
C5 David Campbell M 27/12/1948 50000 1/4/1985 Y S7
Muhammad Rafiq 13
PMU- MIS Department - Database Management - Handout#1
CaptainID FirstName Family Other Gender DOB Salary Joined Married? ShipID
C11 Hajar Al Shehhi Saeed F 21/10/1966 32000 11/7/1990 N S12
CaptainID FirstName Family Other Gender DOB Salary Joined Married? ShipID
C12 Mouza Al Saeed F 2/12/1975 40000 1/11/1986 Y S15
Mansoori
Muhammad Rafiq 14