0% found this document useful (0 votes)
12 views

CSC410 2017-2018

The document is an exam for a database design and management course consisting of 4 questions: 1) Identifying the normal form for relations and decomposing those not in 3NF. 2) Determining if examples represent data or metadata and the structure/context of the information. 3) Drawing ERDs to model business situations involving employees, projects, publishers, books, and authors. 4) Identifying the entities and relationships described in a list associated with an ERD of a furniture company.

Uploaded by

chidiume obi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

CSC410 2017-2018

The document is an exam for a database design and management course consisting of 4 questions: 1) Identifying the normal form for relations and decomposing those not in 3NF. 2) Determining if examples represent data or metadata and the structure/context of the information. 3) Drawing ERDs to model business situations involving employees, projects, publishers, books, and authors. 4) Identifying the entities and relationships described in a list associated with an ERD of a furniture company.

Uploaded by

chidiume obi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

L_L

UNIVERSITY OF LAGOS
DEPARTMENT OF COMPUTER SCIENCES
B.Sc. (Hons) DEGREE EXAMINATIONS APRIL 2018
FIRST SEMESTER 2017/2018 SESSION
CSC401: INTRODUCTION TO DATABASE DESIGN AND
MANAGEMENT
Instruction: Answer all Questions Time Allowed:
1:30mins
1 For each of .the following relations, indicate the normal form for that relation . If the relation is not in third normal
form, decompose it into 3NF relations. Functional dependencies (other than those implied by the primary key) ·
are shown where appropriate.
a CLASS(CourseNo, SectionNo)
b CLASS(CourseNo, Sectior.No, Room)
c CLASS(CourseNo, SectionNo, Room, Capacity) [FD: Room ➔ Capacity]
d CLASS(CourseNo, SectionNo, CourseName, Room, Capacity) [FD: CourseNo ➔ CourseName; FD: Room ➔ Capacity]
2 A. driver's license bureau maintains a database of licensed drivers. State whether each of the following represents
data or metadata. If it represents data, state whether it is structured or unstructured data. If it represents
metadata, state whether it is a fact describing a property of data or a fact describing the context of data.
a Driver's name, address, and birth date
b The fact that the driver's name Is a 30-character field
c A photo image of the driver
d An image of the driver' s fingerprint
e The make and serial number of the scanning device that was used to scan the fingerprint
f The resolution (in megapixe!s) of the camera that was used to photograph the driver
g The fact that the driver's birth date must precede today's date by at least 16 years
3 Draw an ERO for each of the following situations. (If you believe that you need to make additional assumptions,
clearly state them for each situation .) Draw ~he same situation using the tool you have been told to use in the
course
a A company has a number of employees. The attributes of EMPLOYEE include Employee ID (identifier), Name, Address,
and Birthdate. The company also has several projects. Attributes of PROJECT include Project ID (identifier), Project Name,
and Start Date. Each employee may be assigned to one or more projects or may not be assigned to a project. A project
must have at least one employee assigned and may have any number of employees assigned. An employee's billing rate
may vary by project, and the company wishes to record the applicable billing rate (Billing Rate) for each employee when
assigned to a particular project. Do the attribute names in this description follow the guidelines for naming attributes?
If
not, suggest better names. Do you have any associative entities on your ERD? If so, what are the identifiers for those
associative entities? Does your ERO allow a project to be created before it has any employees assigned to it? Explain.
How would you change your ERO If the Billing Rate could change in the middle of a project?
b A college course may have one or more scheduled sections or may not have a scheduled section. Attributes of COURSE
include Course ID, Course Name, and Units. Attributes of SECTION Include Section Number and Semester ID. Semester
ID is composed of two parts: Semester and Year. Section Number is an integer (such as 1 or 2) that distinguishes one
section from another for the same course but does not uniquely identify a section . How did you model SECTION? Why
did you choose this way versus alternative ways to model SECTION?
c Each publisher has a unique name; a mailing address and telephone number are also k~pt on each publisher. A publisher ·
publishes one or more books; a book is published by· exactly one publisher . A book is identified by its ISBN, and other
attributes are title, price, and number of pages. Each book is written by one or more authors; an author writes one or
more book£, potentially for different publishers . Each author is uniquely demibed by an author ID, and we know each
author'5 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 thf. date and amount of each check. As you
develop the ERD for this problem, follow good data naming guidelines.
4 There is a bulleted list associated with the Figure below that describes the entities and their relationships in Pine Valley
Furniture. For each of the 10 points In the list, Identify the subset of the Figure below by listing the entities and
relationships.
cl,s T·a,,._.t'ER ·
- ·•-·-P r-<ODU C"T LIN~ ··--···- :
P K \ Cu i; tom cu t O
!
: ~K _Pr~-~-,~~-• t !!to. 10 . · \ : { ::.u,.t,·,n 1•·• N .•,tllV
•- · .. ~.~ t_:-'U~=l \ "~': ~~~•~~:!__ . J c :~.-,t 1.J•1 ,..:· 1 AUoJ•-.·ta1 •
,:,--,..., 1,l()tf h." t P ..,:, I ~ : C ,.-J~

·ofiD1ci,
: P K . Ot'dO f 10

I -

r- P ?O DUC T __, - ··- - '.


i
PK \ ~ ~ ~c;-!.!.P
- ---·t- - ·--- - - - -·- - - . - - -- • j" .<.)R- OF.:::R --~ INt I
I

! P 11.• u u ,ct 0 ·1..•.1,cr•i:- 11on ··· I .I . -


I P ro d u<-.: r-,nn~.t-. '. O r oc, ~,cl r_1 u un 1, ly
___ _LP ,oav._-:! t=;,ond.ll d Pnc~!

~--_:;.-_ y-5~p o 11 ~- _ _,
l Pt< V•ndor ID ·
r ' ; V e ~G4)1 ~~ n·,: • ' l
L__i \1-.)n do, Ad,::,u-~l~ . I
r-· - - -·- - - - --- -- - -- · -
t- -, ~ \ V ~j~lc~1~L - -- -~
j PK : M t.tta>rl• ~ ID . ·· WORk. CeNTF.·n · ..
!--t ---· . -- . ------------.... __,
IL_ --~~~_:~
1

. .I j M.-rcn.,1 N n m o- . P _~ . Work C ~ nlu:r r0 :

,._ S u p lltV"i::uld By
I I M P!o11.11 Scon,1110,J C:ots1 :
; U nit O f Mvu~•v
'-·- -'·--·-·- -··- -- .
... -···· -· ····- -'
~ :~l:':.~_oc_,~,,~·1~:__ _j
i°- - ---
E MPLOY EE . - ---- · 1
S vpu""'~aoa f
· ·~K £~~ lay•~ ..I D . · ·1
r~-~Ku+'. ! l=,nph':oy11·,,. N•HliA ~
:- ·-·- - . .. ! E111plc.,11·-- /\ UC,••.•1;~ 1

L_ ___ - ·- ·· ·-

aThe company sells a number of different furniture products. These products are grouped
into several product lines. The
identifier for a product is Product ID, whereas the identifier for a product line is Product
Line ID. We identify the following
additiona l attributes for product: Product Description, Product Finish, and Product
Standard Price. Another att ribute for
product line is Product Line Name. A product line may group any number of products
but must group at least one
product. Each product must belong to exactly one product line. ·
b Customers submit orders for products. The identifier for an order is Order ID, and another attribute is Order Date. A
customer may submit any number of orders but need not submit any orders. Each
order is submitt ed by exactly one
customer. The identifier for a customer is Customer ID. Other attributes include
Customer Name, Custo mer Address, .
and Customer Postal Code.
C A given customer order must request at least one product and only one product per
order line it em. Any product sold
by Pine Valley Furniture may not appear on any order iine item or may appear
on one or more order line items. An
attribute associated with each order line item is Ordered Quantity
d Pine Valley Furniture has established sales territories for its customers. Each customer
may do business in any number
of these sales territories or may not do business in any territory. A sales territory
has one to many customers . The
Identifier for a sales territory is Territory ID and an attribute is Territory Name.
e Pine Valley Furniture Company has several salespersons. The Identifier for a salesperson is Salesperson ID. Other
attributes include Salesperson Name, Salesperson Telephone, and Salesperson Fax.
A salesperso n serves exact ly one ·
sales territory. Each sales territory is served by one or more salespersons.
f Each product is assembled from a specified quantity of one or more raw materials. The identifier for the raw mat erial
entity is Material ID. Other attributes include Unit Of Measure, Material Name, and
Material St andard Cost. Each raw
material is assembled into one or more products, using a specified quantity of the
raw material for each product .
Other attributes include Vendor Name and Vendor Address. Each raw material can
be supplied by one or more vendors.
A vendor may supply any number of raw materials or may not supply any raw materials
to Pine Valley Furnitm e. Suppl-y
Unit Price Is the unit price at which a particular vendor supplies a particular raw material.
b Pine Valley Furniture has established a number of work centers. The Identifier for a work center is Work Cent er ID.
Another attribute Is Work Center Location. Each product is produced in one or more
work centers. A work cent er may ·
be used to produce any number of products or may not be used to produce any
products.
The company has more than 100 employees. 1 he identifier for employee is Employee
ID. Other attributes include
Employee Name, Employee Address, and Skill. An employee may have more t han
one skill. Each employee may w ork in
one or more work centers. A work center must have at least one employee working
in that center but may have any
number of employees. A skill may be possessed by more than one employee or possibly
no employees.
Each employee has exactly one supervisor; however, a manager has no superviso
r. An employee who is a supervisor may
supervise any number of employees, but not all employees are supervisors.

You might also like