0% found this document useful (0 votes)
30 views

Database 9 Practical Questions

Mr. Sikulu, the manager of a school's Career's department, is tasked with creating a relational database for examination data, which includes four tables: Class List, Mathematics, Science, and Humanities. The document outlines the structure of these tables, the data to be inputted, and various queries to be created, including one for students with an average score above 70% and another for students whose names start with 'M'. Additionally, it specifies the need to print certain queries and reports.

Uploaded by

BAYERN JOEL
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Database 9 Practical Questions

Mr. Sikulu, the manager of a school's Career's department, is tasked with creating a relational database for examination data, which includes four tables: Class List, Mathematics, Science, and Humanities. The document outlines the structure of these tables, the data to be inputted, and various queries to be created, including one for students with an average score above 70% and another for students whose names start with 'M'. Additionally, it specifies the need to print certain queries and reports.

Uploaded by

BAYERN JOEL
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

2. Mr.Sikulu is the manager of a school's Career's department.

He has been told to use-Database


Management System (DBMS) to update records for an examinations data. Perform the following
operations just like Sikulu would:
a)
i) Create a relational database with four table; Class List, Mathematics, Science and Humanities.

Class List contains the following fields; Class, Student Id, First Name, Last Name. Mathematics Details
contains Students Id, Cat series, and Mark. Science Details contains Students Id, subject, Cat series, and
Mark, Humanities Details contains Students Id, subject, Cat series, and Mark. Draw a diagram that shows
the relationship between the tables and the data type for each field (8 Marks)
iii) Save as Careers 1 (1 Mark)
b) Input the following Data (13 Marks)

CLASS LIST MATHEMATICS


CLASS No. STUDID First NAME SURNAME
STUDID Cat 1 Cat 2
1w A0005 ALISTAIR GOULD
A0001 59 89
1w A0015 ANDREW MURIUKI
A0002 45 53
1w A0008 DENNIS KIPKORIR
A0003 98 88
1w A0001 FRANCIS GACHANGI
A0004 35 36
1w A0014 GERALD MORWABE
A0005 74 70
1w A0002 JOHN GACHANJA
A0006 52 35
1w A0009 JOHN KIRUMBA
A0007 35 40
1w A0004 KEVIN GATIMU
A0008 25 26
1w A0011 MBITHI MASYA
A0009 63 87
1w A0003 MICHAEL GAIKO
A0010 58 42
1w A0007 MICHAEL KIMANI
A0011 74 70
1w A00012 MOHAMED MOHAMED
A0012 96 90
1w A00013 MWENDWA MOKI
A0013 78 63
1w A0006 PHARES KARIUKI
A0014 10 12
1w A0010 WILSON KOPONDO
A0015 04 36

[email protected] [0728 450 425]


Humanities - history Science - Physics

Std Cat 1 Cat 2 Std Cat 1 Cat 2


A0001 78 36 A0001 78 36
A0002 63 78 A0002 63 78
A0003 98 88 A0003 98 88
A0004 35 36 A0004 35 36
A0005 74 70 A0005 74 70
A0006 52 89 A0006 52 89
A0007 63 40 A0007 63 40
A0008 25 26 A0008 25 26
A0009 56 87 A0009 56 87
A0010 99 42 A0010 99 42
A0011 74 70 A0011 74 70
A0012 96 90 A0012 96 90
A0013 69 96 A0013 69 96
A0014 85 12 A0014 85 12
A0015 65 85 A0015 65 85

i) Create a query that contains the Students Id and the students' first name of students who have
an average score of more than 70%. Save the query as excellent. (15 Marks)
^* . *-. . *•

ii) Make a query that would display all students' details of students whose surname and first
name start with letter M. Save the query as M. (4 Marks)
iii) Make a query from it to produce a report that calculates the total scores for each Student and
save the report as score. (8 Marks)
iv) PRINT Excellent and score. (1 Marks)

[email protected] [0728 450 425]

You might also like