You are on page 1of 4

CHINHOYI UNIVERSITY OF TECHNOLOGY

. , ., ,. ,,_·.-~·-.~-]
·····'•
:.

I '

...
l
., .•. 'it'~,-~,·
~·- - ... : ·_-
a'

\'· ,,., ·.
fg>
·.-:•
. :

.
i
.

C'I-
-%2 %
"°7,,a9"
SCHOOL OF ENTREPRENEURSHIP AND BUSINESS SCIENCES

GRADUATE BUSINESS SCHOOL

MASTER OF SCIENCE IN DATA ANALYTICS EXAMINATION

Examination Details

COURSE NAME DATA BASE MANAGEMENT AND WAREHOUSING

COURSE CODE MSCDA603

DATE MAY 2020

DURATION 3 HOURS

Instructions to candidate

1. THIS QUESTION PAPER CONSISTS OF 4 QUESTIONS.


2. SECTION A IS COMPULSORY
3. ANSWER ANY TWO QUESTIONS IN SECTION B.
4. BEGIN EACH NEW QUESTION ON A FRESH PAGE.

Page 1 of 4
Section A

Question 1 [Out of 50]

Suppose that we have a relational database dbemployees with the following tables.

temployee
employee id
title id
ec number
national id
first name
last name
gender
date hired
date of birth

tdepartment
department_id
department_name

temployee_departmment
employee id
department id
from date
to date

tdepartment_manager
employee id
department id
from date
to date
/

[2]
a) Write an SQL to create the Database dbemployees
b) Write an SQL to create the tables below
[4]
i) temployee
[4]
ii) temployee_department
[3]
iii) tdepartment

c) Using the tables above define the terms


[3]
i) Surrogate Key
[3]
ii) Candidate Key
[3]
iii) Foreign Key
[3]
iv) Alternate Key
[3]
v) Composite Key

Page 2 of 4
d) The organisation with the database above has a policy whereby employees who would
have served it for 30 years are retired automatically.Write an SQL statement to ·
retrieve all employees who have reached 30 years of service. [3]
e) Write an SQL statement to compute the average age of employees which belong to
the 'Human Resources' department. [4]
f) Write an SQL statement to retrieve employees who have reached the age of 40 years
and are in the "Accounting Department". [4]
g) Explain the principle of referential integrity using the employee_ id column in the
temployee_departmment table. [4]
h) There is a missing attribute "maiden_surname"" in the table temployee, write an SQL
statement to modify the table schema to include this attribute. [4]
i) Write an SQL statement to add any new employee of your choice into the temployee
table. [3]

Page 3 of 4
Section B

2a) "Data is the new oil in organisations", but crude oil needs to be value added in order to derive
more value by processing it into valuable by-products, using the DIKWHierarchy demonstrate how
organisations can use Data as a valuable asset in gaining competitive advantage [13]

b) Define the following terms giving examples in each case:


(i) Data Definition Language [4]
(ii) Data Manipulation Language [4]
(iii) Data Control Language [4]

3 a) The ANSI/SPARC Framework is the foundation for database development, explain in


detail using examples how this framework promotes Logical and Physical Data Independence
in databases. [ 15]

b) Using relevant examples describe the Relational Data Model. [1 O]

4. a) Suppose you are a manger of company X which is using a traditional file approach and
is facing a number of problems. You have a course in database design and implementation.
Suggest and discuss how you would improve the situation to resolve the problems. [10]

b) Liquid Telecom is a successful Internet Service Provider with over 50 branches in more
20 countries around the world. Each branch has its own set of different databases. The CEO
of Liquid Telecoms has asked you as an IT Expert to provide an analysis of the company's
client internet subscriptions per subscription type, per country, per city for the third quarter of
2019. From this statement:

i) Explain the importance of Databases to Liquid Telecoms? [8]

ii) Why and how is Liquid Telecom going to draw meaning insights from data in different
database platforms and in many branches? [7]

*****END OF PAPER*****

Page 4 of 4

You might also like