0% found this document useful (0 votes)
3 views2 pages

Database Exams

The document outlines an exam for a Computer Packages Database course at Kamirithu Polytechnic, consisting of three main questions. Question one involves designing a database for student admissions, including creating a Registration table and inserting specific student data, as well as generating various queries. Question two focuses on entering supplier data for Uga Ltd and performing calculations and queries related to the suppliers, while question three requires creating a database for East Africa Industry with employee details and various queries.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Database Exams

The document outlines an exam for a Computer Packages Database course at Kamirithu Polytechnic, consisting of three main questions. Question one involves designing a database for student admissions, including creating a Registration table and inserting specific student data, as well as generating various queries. Question two focuses on entering supplier data for Uga Ltd and performing calculations and queries related to the suppliers, while question three requires creating a database for East Africa Industry with employee details and various queries.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

KAMIRITHU POLYTECHNIC

COMPUTER PACKAGES DATABASE EXAM

Question one (40 marks)

Design a database named Admission with table named Registration

The table Registration has the following fields (10 marks)

Field Name Data Type


Sname Auto
Gender Lookup Wizard
DOB Date/Time
Age Number
District Short Text
Tel Number
Department Lookup Wizard
Level Lookup Wizard
Year Lookup Wizard
Insert the following values in the Registration Using the Form (10 Marks)

ID SNAME GENDER AGE DISTRICT TEL DEPARTMENT LEVEL YEAR


1 Sudaka Male 16 Kampala Catering Degree Year 1
Godfrey
2 Nagama Female 20 Mukono Industrial Art Degree Year 2
Fatuma
3 Naikasa Doreen Female 16 Wakiso Catering Diploma Year 1
4 Muigiira Arafat Male 18 Kampala Industrial Art Certificate Year 1
5 Malisa Bbosa Male 18 Wakiso Computer Science Diploma Year 3
6 Tibiwa Joan Female 20 Wakiso Catering Degree Year 3
7 Mbuga Masitu Female 21 Jinja Business Mgt Degree Year 1
8 Nankya Esther Female 19 Kampala Computer Science Certificate Year 2
9 Hyuha Moses Male 21 Jinja Business Mgt Certificate Year 2
10 Kyazze Edngar Male 20 Mukono Computer Science Diploma Year 2
Create queries to determine the following (20 marks)

i. Female students
ii. Male students
iii. Students from Kampala
iv. Students from Wakiso
v. Students from jinja
vi. Degree students
vii. Diploma students
viii. Students with age 16
ix. Students with age greater than 18
x. Students with age less than 19

Question two (40 Marks)

The following table describes a supplier’s report for Uga Ltd during the month of June Year 2001. Enter
the record and answer the question that follows (5 marks)
Suppliers No Suppliers Quality Quantity Free Lift Supplied Town
Name Supplied Rejected
SNO/001 John Kamau 500 30 18 Nairobi
SNO/002 Peris Owino 4500 20 18 Mombasa
SNO/003 Jane Warui 600 35 15 Nakuru
SNO/004 David Juma 700 40 20 Nairobi
SNO/005 Petrol Madilla 800 70 25 Mombasa
SNO/006 Lilian Kamau 350 30 6 Nakuru
SNO/007 Stephen 580 10 9 Nairobi
Bobby
SNO/008 Jardine Sumoh 370 18 12 Mombasa
SNO/009 Fatuma Musa 520 22 4 Nakuru

i. By use of a query calculate the quantity accepted from quantity supplied (5 marks)
ii. Using a query display supplier whose names start with J (3 marks)
iii. Display suppliers whose names has letter M (3 marks)
iv. Calculate a discount given 20% of quantity supplied (5 marks)
v. Using query display suppliers from Nakuru and save it as Nakuru (3 marks)
vi. Create a form to display one at time (3 marks)
vii. Create a report to calculate the quantity accepted from quantity supplied (3 marks)
viii. Create a report to show all the suppliers records, calculate the discount which is given at a rate of
10% of quantity supplied, insert a clip art and give a background (10 marks)

Question three (20 marks)


Create the database by name East Africa Industry and create the below table

NO NAME DEPT B PAY BONUS DED


Ea1001 Naom Waithera Computer 2500 1500
Ea1002 Nyambura Finance 17000 1500 1500
Kamau
Ea1003 Janet Mwanza Marketing 15000 2000 1500
Ea1004 Mercy Muriuki Computer 18000 1200 1500
Ea1005 Justus Kilonzo Finance 20000 2000 1500
Ea1006 Fatuma Kyalo Marketing 21000 2100 1500
Ea1007 Ruth Nabutola Computer 16000 1600 1500
Ea1008 Martin Kimani Finance 14000 1200 1500
Ea1009 Makau Mwangi Marketing 24000 1400 1500
Ea1010 Ahammned Ali computer 18000 4000 1500

a) Create a query to show names, department and b.pay using simple query wizard (3 marks)
b) Create a query to show those people in computer department (3 marks)
c) Display those whose names start with J (3 marks)
d) Display those who are getting bonus more than 1500 (marks)
e) Calculate the net pay for each employee (3 marks)
f) Calculate allowance, which is located at the rate of 10% of B.pay (5 marks)

You might also like