You are on page 1of 2

CPU Business and Information Technology College

Department of Information Technology


Competency Operate Database Application
Exercise on Database
Trainers: Leul.M

1. Create a Database by the name Class schedule under My Document\your name.


2. Create the following table under Class schedule database and save it by the name Teachers.

Field name Data type


Teacher-ID text
Name text 3. Set Teacher-ID Primary key for the
Sex text Teachers Table.
Birth Date Date / Time 4. Set Proper Input mask and Field size.
Email address text 5. Create the following table under Class
Salary Currency schedule database and save it by the
name Class.

Field Name Data type


Record-ID AutoNumber
Class-ID Text
Teacher-ID Text
Course Code Number
Day Of Week Text
Time Start Text
Time End Text

6. Set Record-ID Primary key for the Class table.


7. Set Proper Input mask and Field size.
8. Create a possible Relationship between the two tables.
9. Enter the following data for the Teachers table Using Form.

Teacher-ID Name Sex Birth Date Email address Salary


T-145 Tomas M 8/13/1972 tomas@gmail.com 2960
T-146 Biniam M 7/7/1960 biniam@yahoo.com 2670
T-147 Melaku M 3/4/1980 melaku@hotmail.com 1667
T-323 Alemu M 2/8/1963 Alemu2010@yahoo.co 2800
m
T-350 Helen F 9/20/1974 Helen1@hotmail.com 2400
T-351 Selam F 12/27/1970 Selam44@gmail.com 2960
T-352 Hailu M 8/26/1981 hailugez@yahoo.com 1845
T-353 Samson M 3/14/179 Samson14@gmail.com 1630

1|Page
10. Enter the following data for the Class table using Form.

Record-ID Class-ID Teacher-ID Course Code Day Of Week Time Start Time End
1 C-011 T-351 200 Monday 8:30 AM 10:15 AM
2 C-012 T-351 201 Monday 10:30 AM 12:15 AM
3 C-013 T-147 202 Tuesday 8:30 AM 10:15 AM
4 C-014 T-323 203 Wednesday 8:30 AM 10:15 AM
5 C-014 T-350 204 Wednesday 10:30 AM 12:15 AM
6 C-014 T-145 300 Wednesday 1:30 PM 3:15 PM
7 C-017 T-145 301 Friday 10:30 AM 12:15 AM
8 C-112 T-352 306 Saturday 8:30 AM 10:15 AM
9 C-112 T-353 308 Saturday 10:30 AM 12:15 AM

11. Set the Birth Date field to Medium date format for Teachers table.
12. Sort the Teachers table by Name field.
13. Create a select query that shows female Teachers and save it by the name Female Tech.
14. Display only those Teachers whose names begins with S and save it by the name S.
15. Filter those Teachers whose Sex is Male and Salary below 1845, save it by the name below.
16. Make a new Copy of Teachers table by the name Teachers Copy.
17. Make a new Copy of Class table by the name Class Copy.
18. Create a delete query that deletes male Teachers from Teachers Copy and save it by the name Delete
male.
19. Create an append query that copies male Teachers from Teachers table to Teachers Copy table and
save it by the name restore male .

2|Page

You might also like