You are on page 1of 2

Express Computer Training Center

MS-Access Final Exam


I. Theoretical Part

1. What is Ms-Access
2. How do we open Ms-Access? (show the steps to open Ms-Access)
3. List down the types of Relationship
4. What is the difference between Primary key and foreign key?
5. List down the at least 3 action queries.

II. Practical
1. Create a new folder by Your full name under C:/
2. Create a new Database by the name Ebraist Parmacy.
3. Create the following table under Ebraist Parmacy.

Medicine Table
M- M-Name Mf-Date Exp-Date Country Price Customer
Code No
M-001 Aspirin 12/06/92 10/13/97 India $650.00 C-006
M-002 Panadol 10/29/96 10/29/96 China $500.00 C-003
M-003 Ampicillin 09/09/90 10/10/95 India $375.00 C-002
M-004 Aspirin 11/07/93 11/15/98 India $679.00 C-005
M-005 Ampicillin 10/28/90 10/25/95 Singapore $450.00 C-002
M-006 Panadol 08/90/91 10/10/96 Ethiopia $900.00 C-001
M-007 Aspirin 12/11/90 12/12/95 Ethiopia $632.00 C-004
M-008 Ampicillin 05/05/91 09/04/96 India $580.00 C-003
M-009 Aspirin 10/07/90 10/10/95 Ethiopia $550.00 C-005
M-010 Panadol 09/20/92 10/10/97 India $175.00 C-006
a. Use proper data type for each given Field Name
b. For the Country field, allow peoples to insert only India, China, Singapore,
Ethiopia. And insert an appropriate text message if the rule violates.
c. Insert the appropriate Input mask for the fields.
d. Set India as a default value for Country Field
4. Design the following table under your database and save it as Customer Table.
Customer Table
Customer no C-Name Age Sex Tele Paid
C-001 Hailu 25 M 12 52 68 No
C-002 Jemal 19 M 10 10 21 Yes
C-003 Hirut 20 F 23 43 21 Yes
C-004 Mahlet 21 F 56 20 12 Yes
C-005 Eyob 20 M 25 41 00 No
C-006 Bekele 24 M 21 20 23 Yes
a. Use proper data type for each given Field Name
b. Set Customer no as Primary key
c. Insert the appropriate Input mask for the fields.
d. Make the Sex field to insert only one character
e. And also the field should accept either M or F and a message at the time
this violates.
f. The customer name should not be null.

5. Create a proper relationship between the above two tables.


6. Create a select query that contains C-Name, M-Name, Price and Paid, who take
only Aspirin. Save it as Aspirin
7. Create a copy of Medicine table by the name Copy of Medicine.
8. Create an update query that increases the price of Panadol by 15% save the query
by the name Panadol. (Use copy of medicine table)
9. Create a delete query that delete medicine from India. (Save it as del India.)
10. Restore the records which are deleted on question no nine.
11. Create a make table query that contains M-Code, M-Name, C-Name, Paid and
Price. Save it as Calculation.
12. Create a select query based on calculation table and calculate the following:
Discount:= If M-Name=”Asprin”, 5%of price
If M-Name=”Panadol”, 10%of price
Otherwise, 15% price.
Actual Price:=Price-Discount,
Then save the query by the name Discount.
13. Create a parameter query that accept the Medicine name and displays the country
with its expire date.
14. Create a form for Customer Table and make it attractive. And save it by Customer
15. On Customer form, create a calculated field called Total Employee, which shows
the total number of customers in your database. And save it by the same name.
16. Create a report for Medicine Table and calculate the average price of the medicine
and make your own header and footer. Then save it by Report 1.

Good luck!

You might also like