Learning Outcomes
At the end of the lesson, you should be able to 1. Identify project requirement 2. Design database table 3. Create a database 4. Create two tables that include the primary key in each table 5. Build a relationship between two table (query) 6. Enter data into the table content 7. Create a form that related to the table content
SITUATION A:
You want to create a database of your friends telephone numbers. Majority of your friends have more than one telephone numbers. The data that you will store in your database are Friend ID, Name, Address, Phone Numbers and Date of Birth. You want to create a database of your friends telephone numbers. Majority of your friends have more than one telephone numbers. The data that you will store in your database are Friend ID, Name, Address, Phone Numbers and Date of Birth.
1.
Phone Book Database To create a database of friend telephone numbers Table 1 Table 2 PHONE_INFO FriendID,Name, Phone_Num1, Phone_Num2 FriendID
PHONE_INFO
3.
Name of forms
FRIEND_INFO, PHONE_INFO
Field Names
Click File and select Save as, then name your table FRIEND_INFO and click OK Button
Relationship table
Click Show Table icon. Select FRIEND_INFO table. Click Add button
Select PHONE_NUM table Click Add button. Then click Close button.
1. Click Relationships
2. Edit Relationships.
3. Select FRIEND_INFO table.
Fill all the data given below into the FRIEND_INFO table. After entering all the data, click File and then Close.
Next, fill all the data given below into the PHONE_NUM table. After entering all the data, click File and then Close.
Choose FRIEND_INFO table, move all fields in the Available Fields section by using this icon Into the selected fields section. Then click Next
Choose PHONE_NUM table, then move Phone Numbers field in the Available Fields section into the Selected Fields section using this icon click Next
Naming query
Type PERSONAL PHONEBOOK for your form title. Then click Finish.
Activity 1
number
text
currency
Date / Time
Activity 2