Class Work Database Questions For Ict
Class Work Database Questions For Ict
QUESTION 1
The table below was extracted from the database of Young Consult Ltd, a
firm that deals in importation and distribution of electrical appliances.
ID First No. of
Last Name Sex Age Residence Gross pay PAYE
No Name children
Page 1 of 10
(i)Apply a UGX currency symbol on the Gross pay figures. (02 marks)
(j)Save and print all your work. (02 marks)
QUESTION 2
The table exhibited shows the records of hours worked in the month of
June 2017 by each employee in one of the wheat industry in Kampala.
QUESTION 3
Create a database saved as ‘students’ to hold the following table. (03
marks)
Student ID Name Sex Date of birth Home district
WWW-001 Kato Justine F 1998-10-01 Jinja
Page 2 of 10
WWW-101 Naiga Sandra F 1978-02-28 Kampala
WWW-200 Kibuye Jeff M 1960-10-01 Wakiso
WWW-121 Walugembe Joseph M 1984-04-21 Wakiso
WWW-090 Outa Denis M 1990-03-18 Kampala
WWW-112 Kalagi Victor M 1999-01-01 Jinja
WWW-084 KyazzeDalvin M 2000-01-24 Jinja
WWW-070 IgemeJackline F 1992-12-12 Jinja
WWW-020 KitakuleSanon M 1992-10-30 Kampala
WWW-004 Wanyanka Jerks M 1984-01-31 Wakiso
WWW-300 Mudhe Isaac M 1970-08-21 Kampala
WWW-301 Nansubuga Vivian F 1980-10-10 Jinja
Instructions:
a) Design a table saved as ‘biodata’. (05 marks)
b) Insert a primary key in a relevant field. (02 marks)
c) Design a form having an appropriate background colour that you
will use to enter the above records in your table saved as
‘entryform’.
(02 marks)
d) Create three queries to return students:
(i). who are above 25 years of age. Save the query as
‘above25years’.
(04 marks)
(ii). whose second name begin with letter J. save the query as
‘letterj’.
(04 marks)
(iii). that were born between 1980 and 1998. Save the query as
‘betn8098’
(04 marks)
e) Create a report from your table showing only Name, Sex and Home
District. Save the report as ‘all’. (04 marks)
QUESTION 4
Create a database for Jinja Bridal Car Hire Ltd saved as bridal and carry
out the following tasks. (02 marks)
Employee_Name Sex Date_of_Birt Car_Type Employee_ID Remarks
h
Kalambe Daphine F 1980, 11 – Premio JBCH-200 Good work
18
Sanjay Hussein M 1978, 02 – Benz JBCH-010
27
Kapalaga Michael M 1984, 10 – Premio JBCH-001 Experienced
30
Nabukera Joan F 1991, 11 – Premio JBCH-019 Time keeper
30
Sentongo Philip M 1962, 01 – Wish JBCH-180
10
Muwanguzi Vivian F 1973, 04 – Premio JBCH-150 Co-opertive
01
Kato William M 1950, 06 – Wish JBCH-090 Experienced
Page 3 of 10
02
Walugembe Alex M 1992, 06 – Benz JBCH-060 Time keeper
14
Okello Stephen M 1982, 01 – Wish JBCH-070 Eratic
31
Instructions:
(a). Design a table saved as drivers to hold the above data.
(08 marks)
(b).Using appropriate field, assign a primary key. (02 marks)
(c). Design a form having a sky-blue background colour, footer of
your name you will use to populate the table. Save the form as
dataentry.
(04 marks)
(d).Design three queries that will return workers who:
(i). have no remarks against their records. Save the query as not
appraised. (03 marks)
(ii).drive Car_Type that is not a Wish. Save the query as Wish.(03
marks)
(iii).celebrate birth day in the month of January. Save the query as
bornjan. (03 marks)
(e). Create a report to return drivers who drive a premio Car_Type.
Save the report as premio. (03
marks)
(f).Print your queries and report only. (02 marks)
QUESTION 5
Open any database programme that you are familiar with and create a
database file called Employee Database.
Enter the following records, sort table by Employee No. in ascending
order, save the table as employee. 3
marks
a) Make a form and enter the above data in the table. Name the form
as The original form 8
marks
b) Set the primary key on an appropriate field. 2 marks
Page 4 of 10
c) Set the employee field size to 6 maximum. 2
marks
d) For qualification field, use these fields i.e. Masters, Degree, and
Diploma as the only acceptable values in the validation rule. Set the
phrase “Wrong Data entered” as a validation text. 4 marks
e) Design a query that displays all employees with Masters and are in
the HRM Department. Save as query 1 and print a corresponding
report based on this query called Query Report. 4
marks
f) Design a query that displays all employee employed before
01/01/1992 and are having DEGREES. Save as query 2. 4 marks
g) Print a report that extracts the following information from the
tablei.e. Employee No. Surname, First Name, and Qualifications. 3
marks
QUESTION 6
Page 5 of 10
QUESTION 7
a) Load a Database Application and create a database file where records of employees of
Kirimuttu Co. Ltd will be entered, save it as Your Name-Employee Records. (1
Mark)
(b) In design view use the guidelines below to create a table and save it as Job Titles: (3
Marks)
Field Name Guidelines on Field properties
Employee No - Will contain 5 Characters only (1 Mark)
- Will have unique entries for each employee
Department Maximum of 25 Characters
Job_title Text (Maximum of 25 Characters)
Date Recruited Date format dd/mm/yyyy (1 Mark)
Gross Pay Number
Tax Number
Net Pay Number
(c) Create a form for the above table with a datasheet layout and save it as Job Title
Form:
(2 Marks)
(d) Use the form created in (c) above to enter the records below: (3 Marks)
Page 6 of 10
QUESTION 8
Your relative who works in the Records Department of an Organisation has approached to
help him with his new assignment of creating a simple Employee Database: Using a DBMS
you are familiar with, create a database file and save it as Your name-Employee Dbase. (1
Mark)
(a) Following the guidelines below, create a table in design view and save it as Employee
Table.
(3 Marks)
Field Name Guidelines on field properties
Name Maximum of 25 Characters
Sex Only 1 Character
Celphone No Maximum of 12 Characters Set as Compulsory field
[1Mark]
DoB Short date format
Residence Maximum of 25 Characters
Must set up field with already defined departments for user to choose
Department from.
[1Mark]
Basic Pay Set as Numeric field and it is also a compulsory field
[1Mark]
No of Days Set as Numeric Field
(b) Create a form for the above table and use it to enter the following records into the
database; save it as Employees Form. (3 Marks)
Basic Days of Gross
Name Sex Celphone No DoB Residence Dept Pay Work Pay
Baine Doris F 0701 344 677 19-Aug-72 Namasuba Accounts 350000 30
Lule Cate F 0701 444 999 07-Feb-78 Nabweru IT 350000 21
Tuhebwa
Chris M 0752 777 888 03-Apr-82 Njeru Accounts 350000 20
Ddumba
Musa M 0754 111 222 20-Feb-63 Bulamu Welfare 290000 30
Waibi
Mable F 0772 333 666 23-Aug-67 Najjeera Admin 450000 24
OjokTevin M 0772 777 888 09-Dec-69 Mukono IT 350000 30
Male Keny M 0756 232 555 12-Jan-60 Bbira Admin 450000 20
(c) Create a Report with records grouped by Department in a Landscape Orientation: Save it
as Employee Report.
Include a footer of your name and personal number. (3 Marks)
(d) Create a query that will extract all employees who are Airtel Telecom subscribers; save it
as Airtel Subscribers. (2 Marks)
(e) Create a query that will extract all female employees who reside in towns that start with
letter “N” and; save it as N-Residents. (2 Marks)
(f) Assuming the Official days of work are 20, Create a calculated query in design view
showing only Name, Basic Pay, Days of Work, Gross Pay and include a new field
Overtime Allowance; save it as Employee Pay.
In this query calculate:
Page 7 of 10
The Overtime allowance which is [Excess days of work X 40,000] (2
Marks)
The Gross Pay, which is a sum of [Overtime allowance] and [Basic Pay] (1
Mark)
QUESTION 9
The table below gives information on some staff members of a computer school called
"COMTECH ACADEMY"
EMP SURNAME FIRST SEX TITLE DEPARTMENT SALARY DATE
NO. NAME (shs) OF
BIRTH
a) (i) You are required to design a suitable database to manage the above information, name
the database “EMPLOYEE DATABASE”.
(i) Create a table using Design view ,and name it EMPLOYEE TABLE.
(ii) Create a form called Employee Entry Form and enter the above records.
b) (i) Create a query displaying all the fields in the above table to filter out only employees
from the department of information. Save it as INFORMATION DEPARTMENT.
Print the query and its output
(iii) Create another query displaying all the fields of employees with salary less
than 300,000. Name it "salary scales employees less than 300,000."
Print the query and its output.
(iv)The academy 's retirement age is 55years.Create a query to filter out the employees
whose ages are above 55years. Name it "RETIREMENT AGE"
Print query and its output.
(v) Create a report using the employee table and group the records by department and
name it "REPORT BY DEPARTMENT" Print the report and the query.
Page 8 of 10
QUESTION 10
Your school has decided to keep records of all food items to be kept in the store. You are then
tasked to design a database called Dining Records and within your database you create the
table called Food Store as below:
StockNo Item Category ManDate Quantity Price
Required:
a) Now that your Head teacher has given you a job to create the database and its table as
indicated above. In the table design, ensure the following set field properties:
i. Select the appropriate field and make it the primary key (01 mark)
ii. Allocate appropriate data types in all fields of your table (03 marks)
iii.Set the fields Stock No, Item, Category to field size of 4, 15 and 10 respectively.
(03
marks)
iv. Set the Price field to be displayed using UGX monetary units. (01 mark)
b) Create a professional form based on your table in design view and your form should
have the following
i. A header, using the name of your school with 18 font size. (02 marks)
ii. A closing button set at the right upper side of your form. (01 marks)
iii.A calculated Total Price field by taking (Quantity * Price) (02 marks)
iv. Include a background color of your choice. (01 marks)
v. Save your form and name it as School Entries. (01 mark)
c) Create a query to display all spices that cost below 5000 Ugandan Shillings. Name
your query as Spice less 5000. (06
marks)
d) Use a query to calculate the Item Age from the time it was manufactured to date and
your new calculated age field should be Item Age. Save your query as Item time
Lapse.
(04 marks)
e) Create a report based on your table and it should be grouped by Categories. Include
your name as a header. Save your report as Food Store Report. (05 marks)
Page 9 of 10
END
Page 10 of 10