University of Mauritius: Faculty of Law and Management
University of Mauritius: Faculty of Law and Management
University of Mauritius: Faculty of Law and Management
MAY 2017
Wednesday
DATE 10 May 2017 MODULE CODE CSE1240(1)
INSTRUCTIONS TO CANDIDATES
Participants must register for the event. Each event must have at least one
participant and a participant participates in at least one event. The date of the
registration needs to be recorded. A participant is allowed to register for more
than one event. An event can be a competition or a concert. For each
competition, the name of the winner is recorded in the database. For the concert,
the name of the artist as well as price of the ticket is recorded. A participant is
described by: a participant id, a nick name of their choice, an address, a telephone
number and gender. More than one phone number can be recorded for a
participant.
Events are supported by support staffs. A support staff is described by: a staff id,
a name and a telephone number. One support staff may be assigned to more than
one event and one event may require more than one support staff. Each event
must have at least one support staff. An assignment of a support staff to an event
may be compulsory (case in which the respective staff must attend the event) or
optional; this information will also have to be recorded in the database.
a) The owners of Events Ltd have requested you to create a conceptual model for the
database to be developed. The model should be in the form of an Entity Relationship
(ER) diagram. It should contain all entities, relationships, attributes and cardinalities.
[15 marks]
b) Explain FOUR drawbacks of using a file-based system to store the data recorded by
EventsLtd.
[4 marks]
c) The ANSI-SPARC model of a database identifies three distinct levels at which data
items can be described. Briefly explain each level.
[3 x 2 marks]
Page 1 of 4
Database Systems – CSE1240(1)
The following table, CONSULTANCY, provides an extract of data pertaining to the current
project assignments.
i) ConsultantName
ii) FeeRate
iii) ConsultancyHrs
[3x1 marks]
c) Using an example from the above table, explain what is lossy decomposition and
state how this problem can be solved?
[3+1 marks]
d) Normalise the CONSULTANCY table to 3NF. You should show all the steps,
functional dependencies and table schemas. You should also identify all primary
and foreign keys.
[12 marks]
Page 2 of 4
Database Systems – CSE1240(1)
i) BETWEEN
ii) DISTINCT
iii) ORDER BY
[3 x 2 marks]
b) The following table illustrates the parking allocation details for a newly built
residential complex. Primary Keys are underlined.
Table: Resident
ResidentName ResidentPhone ResidentRoom ParkingId
John Adams 403-7765 Room3.2 P1
Sam Johnson 701-9043 Room1.3 P2
Mary James 777-4431 Room2.5 P4
Table: Parking
ParkingId ParkingLocation ParkingDetails ParkingSpace
P1 North Near shopping area 15
P2 East Near swimming pool 25
P3 West Near garden area 20
P4 South Near food court 35
i) List ALL the details of parking locations available at the residential complex.
[2 marks]
ii) List the parking location and details of the parking space which can
accommodate more than 20 vehicles.
[3 marks]
iii) Find the total parking space available in the North and South location. The
column listing the total should be named as “TotalParking”.
[5 marks]
Page 3 of 4
Database Systems – CSE1240(1)
iv) Display the resident phone, room number, parking location and parking
details allocated to Mary James. Make use of alias in your query.
[5 marks]
v) Due to the increasing requests for parking spaces, a new parking location is
being created for the residential complex. The details are:
[4 marks]
a) As a database designer, you have been asked to setup a database environment for a
mobile phone accessories shop. The manager of the company, Mr Samuel, is well
acquainted with latest technologies such as web and the internet. His main objective
is to market his products on the World Wide Web (WWW) and make his products
more visible to potential clients.
b) In a multi-user transaction processing system, many users can access the system
concurrently.
c) A Data Warehouse is a database used for reporting and analysis. Comment on the
following statement:
“Data warehouses integrate multiple databases and other information sources into a single
repository.”
[5 marks]
Page 4 of 4