1. Using the following databases write the database schema and Network
a. Shop database
partName colour Cost suppierId
suppierId address phone
b. Flower database
DeliveryId category size
Id Name LatinName HighZoneI LowZoneId DeliveryI Light Soil
ZoneId LowestTemp highestTemp
cNo title sName initials street city postc credLim balance
invoNo cNo invDate amount
invoNo paytNo pmtDate amount
Version 1.1 1 of 7
Functional Dependency Diagrams:
Complete the following:
1. For each of the tables of data below, draw a functional dependency
2. For each of the following tables, draw a functional dependency
a. Assume a tute group meets only once a week.
b. How would the diagram be different if this were not the case?
Version 1.1 2 of 7
3. For the following business rules, pick out the data elements and draw
functional dependency diagrams.
a. Orders (identified by order_id) are made for parts (identified by
part_no). Any quantity of parts can be ordered in an order.
b. The grades received by students (identified by student_id) in
units in different semesters.
c. The price of cars (identified by registration number) in car yards
owned by a dealer.
d. The outstanding loans which are due by a borrower (identified
by borrower_id) on a particular due date of books (identified by
e. The date, time and amount of withdrawals and deposits on
accounts (identified by account_no).
f. The total distance travelled in kilometers by cars (identified by
registration number) used by drivers (identified by employee#)
on a day (identified by date). Assume a car can be driven by
more than one driver in a day.
g. A person (identified by employee#) can work on more than one
project (identified by project_id). A person starts on a project on
a single start date. More than one person can start on the same
project on the same date but a person can start only once on the
same project and cannot start on more than one project on the
h. Deliveries (identified by delivery number) include many parts
(identified by part number). There is quantity delivered of each
part, and each part has one weight (measured in kilograms).
Parts come in many colours. The quantity on hand is maintained
for each colour of each part.
i. Subjects (identified by subject name) use a number of texts
(identified by title). Each text can have a number of authors
(identified by author name). Each subject can be taught a
number of semesters and there is one teacher (identified by
teacher name) for each subject each semester.
4. Consider a simple personnel application where an employee is
uniquely identified by an employee number. Each employee has a
name and a salary. Suppose different employees can have the same
name or salary. Draw a functional dependency diagram for the
Suppose further that each employee worked in a department and that all
employees in the same department received the same salary. Modify your
FDD accordingly. Eliminate redundant FDs.
Version 1.1 3 of 7
5. Shoes are sold in a variety of styles and sizes. A style is identified by a
style number. Each style has a description, but the same description
may apply to several styles. Weekly-Sales represents the number of
shoes of a particular size and style sold in the previous week. Monthly-
style-value is the total sales value in the previous month for each style.
Draw an FDD for the data elements Style-Number, Description, Size,
How would your diagram change if you incorporated Week and Month, so
historical data of Weekly-Sales and Monthly-Style-Value could be
6. Refer to the forms below.
Draw FDDs & network diagrams for forms:
a. CUSTOMER ORDER
b. THE SOFTWARE SOFTIES
Version 1.1 4 of 7