Professional Documents
Culture Documents
MSCDA603 - January 2020 - May 2020 NORMAL
MSCDA603 - January 2020 - May 2020 NORMAL
MSCDA603 - January 2020 - May 2020 NORMAL
. , ., ,. ,,_·.-~·-.~-]
·····'•
:.
I '
...
l
., .•. 'it'~,-~,·
~·- - ... : ·_-
a'
\'· ,,., ·.
fg>
·.-:•
. :
.
i
.
C'I-
-%2 %
"°7,,a9"
SCHOOL OF ENTREPRENEURSHIP AND BUSINESS SCIENCES
Examination Details
DURATION 3 HOURS
Instructions to candidate
Page 1 of 4
Section A
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
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]
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:
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