Académique Documents
Professionnel Documents
Culture Documents
INSTRUCTIONS TO CANDIDATES:
Page 1 of 3
B8IT050
An organisation wants to keep track of all the books written by his employees
(authors) and the publisher responsible for publishing those books.
Each publisher has a unique name; a mailing address and telephone number are also
kept on each publisher. A publisher publishes one or more books; exactly one
publisher publishes a book. A book is identified by its ISBN, and other attributes are
title, price, and number of pages. One or more authors write each book; an author
writes one or more books, potentially for different publishers. Each author is uniquely
described by an author ID, and we know each authors name and address. Each
author is paid a certain royalty rate on each book he or she authors, which potentially
varies for each book and for each author. An author receives a separate royalty check
for each book he or she writes. Each check is identified by its check number, and we
also keep track of the date and amount of each check. As you develop the ERD for this
problem, follow good data naming guidelines.
Produce a conceptual class diagram (ER Model) for the entire scenario as described above.
State any assumptions made.
i. Identify the correct entities. (5 marks)
ii. Represent the entities with their attributes (including a clear indication for the
primary keys) in ER diagram. Also define data types for all the attributes of
each entity type.
(14 marks)
iii. Represent the relationships between entities in ER diagram using crows-feet or
UML notations. Also represent foreign keys in ERD/Relational Schema.
Develop any associative entities if required.
(8+8=16 marks)
(Total: 50 marks)
Page 2 of 3
B8IT050
Question 2 - 25 Marks
Consider the given relation with the sample data. The DEPARTMENT of
TRANSPORTATION (DOT) captures the data about projects and their length (in miles).
Each project has a unique Project ID and Project Name. Each project manager has a
unique Project Manager ID and Project Manager Name. Each project has one project
manager. A project manager can manage several projects. A project can span across
several counties. This table records the length of a project in a county in the
ProjectMilesWithinCounty column.
a. Depict the full key functional dependencies, partial functional dependencies (if any),
and transitive functional dependencies (if any) in the DOT PROJECT table.
(11 marks)
b. Show the result of normalizing the DOT PROJECT Table to 2NF.
(7 marks)
c. Show the result of normalizing the DOT PROJECT Table to 3NF.
(7 marks)
(Total: 25 marks)
Question 3 - 25 Marks
How would you define the cardinality for relationships and the types of cardinality in data
modelling? Discuss three types of cardinality in unary and binary relationships by giving
an example for each of them.
(7+ 9 + 9 = 25 marks)
(Total: 25 marks)
Question 4 - 25 Marks
a. What is a SQL VIEW? Illustrate the advantages of using VIEWS. Give an example of
creating a SQL VIEW.
(3+5+3 = 11 marks)
b. What is a SQL Transaction? Describe by providing an example. Also explain four
properties of a SQL transaction.
(2+4+8 = 14 marks)
(Total: 25 marks)
Page 3 of 3