Professional Documents
Culture Documents
PRES NO PRES MEMBERS AND QUESTIONS DUE 4 March PRES AREAS TOPICS AND
2022 POINTS FOR PRESENTATION
Sir The relational model
Relation and its
properties
Relational Model
Concepts
Relational Constraints
and Relational Database
Schemas
Additional Relational
Operations
Examples of Queries in
Relational Algebra
Group 1 a) Suppose you and your friends are starting an e-
commerce company which sells various kinds of
Charlton Gotami products in daily life like perfume and toys Database analysis and design
B1851654 online. Now you are trying to design the Overview of the Entity
Blessing Chikonhi company’s website. Based on the following relationship (ER) model
B1851993 requirements, design an ER diagram for the
Tanaka Zvakaramba database of the website. For each binary and Extended Entity
B1953658 relationship you identified, state the cardinalities relationship (EER)
Kundiso Nyowani (1:1, 1:m or m:n) on the entities participating in model
B1852769 this relationship. [20]
a)
Terrence Zakwa consider the following part of the database schema: Relational algebra
B1851379
Kudzanayi Kawara webpage(webID, webTitle, url, hits) Tuple Relational
B190619A courseware(cID, cDescription, ftpLocation, category)
Benovelent ftpLink(webID, cID) Calculus
Mudzinganyama
B1851682 The relation webpage stores data about web pages. Each Domain Relational
Cloudious Chikazhe web page is described by a unique identifier webID, a title Calculus
B1953683 webTitle, its url, and the number of hits to it. The relation
courseware contains data about the course material of a
course. Each courseware record stores a unique identifier Overview of the QBE
cID to identify a courseware file, a description Language
cDescription of the courseware file, a directory
ftplocation from where the file can be downloaded, and
the category of courseware (‘P’ = publication, ‘N’ = notes,
‘D’ = document, ‘E’ = executable). The relation ftpLink
stores for each Web page the ftp links to multiple
courseware files and for each courseware file the different
Web pages to which it is linked.
[4X3]
Group 4 a) Let us assume a database for Web pages that
keep data related to courses taught at a university. We
Mavis Mundenda consider the following part of the database schema: Structured Query Language
B190230A (PRACTICAL)
Salomu Muzondo webpage(webID, webTitle, url, hits)
B190676B courseware(cID, cDescription, ftpLocation, category) Data Definition,
Maranatha Chitare ftpLink(webID, cID) Constraints, and Schema
B1953785
Changes in SQL
Melisa Musa The relation webpage stores data about web pages. Each
B190049A web page is described by a unique identifier webID, a title Basic Queries in SQL
Tapiwa Shumba webTitle, its url, and the number of hits to it. The relation
B1851232 courseware contains data about the course material of a More Complex SQL
course. Each courseware record stores a unique identifier Queries
cID to identify a courseware file, a description
cDescription of the courseware file, a directory Views (Virtual Tables)
ftplocation from where the file can be downloaded, and in SQL
the category of courseware (‘P’ = publication, ‘N’ = notes,
‘D’ = document, ‘E’ = executable). The relation ftpLink Specifying General
stores for each Web page the ftp links to multiple Constraints as
courseware files and for each courseware file the different
Assertions
Web pages to which it is linked.
Additional Features of
Write relational algebra for the following queries
SQL
i. Find web ids and web titles of web pages which
provide courseware with the cID of “COP5725”.
ii. Find web ids and web titles of web pages which
ONLY provide courseware with the cID of “COP 5725”.
PRES PRESENTATIONS
iii. Find the url of web pages which have the number
of hits between [5,000, 10,000 ).
ii. Find web ids and web titles of web pages which
provide course materials with the cID of
“COP5725” and the category of publication.
[4X3]
Group 5
a) How does a query tree represent a relational
Moses Jawi B1952984
Liberty Alois algebra expression? [4]
Chandiwana
B1953675 b) Discuss any two rules for query
Trisher T Mpatsi
B191368A
optimisation, giving example as to when
Munashe should each rule be applied.[4]
Ticharambeyi
B1953003 c) Examine the typical phases of query
Query Processing and Optimization
processing. [10]
Translating SQL Queries into
d) Given the following three linked tables: Relational Algebra
Using Heuristics in Query
Customers (custID, name, country) Optimization
Products (prodID, price) Using Selectivity and Cost
Orders (orderID, custID*, prodID*, Estimates in Query
Optimization
date)
SELECT Customers.name
FROM Customers, Orders, Products
WHERE Customers.custID =
Orders.custID
AND Orders.prodID =
Products.prodID
PRES PRESENTATIONS
AND M.credits = 15
AND R.grade = ‘A’;
Draw a query tree that corresponds to the most
efficient way of processing this query.
[12]
h) Consider the following three linked tables
that contain information about employees
and the projects they work on:
Group 6
a) Describe the shadow paging technique
Knowledge Sithole
B1953752 using a diagram. [9]
Tinashe Taruvinga
B1953017 b) Examine deferred modification and
Allan Kamuruko
B190044A immediate modification technique for
Rowson Zingwina recovery explaining how does recovery
B190191A
Kudzai Tsikira takes place in case of a failure in these
B1953895
techniques. [10]
c) Let transactions T1, T2 and T3 be defined Transaction management and
to perform the following operations : Database Recovery
Schedules and Recoverability
T1 : Add one to A Serializability of Schedules
Transaction Support in SQL
T2 : Double A Concurrency Control
Techniques
T3 : Display A on the screen and Database Recovery
then set A to one. Techniques
o) Checkpoints [5X3]
Group 9
The hosting of database services on the ‘Cloud’ is
JUSTIN JAPI
B1953909 representative of a Service Oriented Architecture
TANAKA T
CHIKOMO B191139A (SOA). The SOA Company that hosts a client’s
PANASHE W
KASEKEB1953765 database distributes their database physically and
OTHINIEL T geographically, replicating their data across Database Security and Emerging
MAKAKA B190591A Database Technologies and
ROBERT NEMON multiple database servers. Applications
B190177A
a) Outline the benefits of the distributed Introduction to Database
Security Issues
database architecture described above as
Access Control Based on
opposed to a database that is centralised Granting/Revoking of
Privileges
and not hosted. Illustrate your answer with
Databases on the World Wide
a scenario of your choice that describes a Web