Assignment #2 - 2132
Assignment #2 - 2132
CSI2132 – Databases I
Winter 2021
Assignment 2
Every student must submit the assignment as a pdf file individually through Brightspace.
Exercise 1 (53%)
Exercise 2 (25%)
Exercise 3 (22%)
The GetMoving company asked your team to build a database. The company provided your
team the following header of a table with the information they want to store in relation moving.
They also provided the following description of the attributes: Team_ID is the unique identifier of
each team; Team_Location is the specific city where a Team is located; Orig_city and Dest_city
are the cities of origin and destination of a moving contract; the Dist_Estim is an estimate of the
distance of the moving; the Load_Estim is the total estimation of the load for a moving contract;
and the Quote is the quote value provided to the client for a given moving.
Team_ID Team_Location Orig_City Dest_City Dist_Estim Load_Estim Quote
For the relation moving, you are also asked to consider the following information related with
functional dependencies:
FD1: “The company has several different moving teams that are located in different cities across
Canada. The Moving company is able to determine the specific city where each team is located
using the Team_ID.”
FD2: “ The distance estimates are calculated using the origin and destination cities.”
FD3: “The company calculates a quote for the moving service using the distance (in miles) and
load (in lbs) estimated values.”
a) (3%) Identify the 3 functional dependencies described above (FD1, FD2 and FD3).
b) (6%) Based on your functional dependencies in 3(a), specify all candidate keys for the
relation moving.
c) (13%) Normalize the relation to Boyce Codd Normal Form and show the resulting relations.
(Note: For questions 3 b) and c) you can simplify the names of the attributes. Just indicate
clearly the correspondence that you are using. For instance, Team_ID will be attribute A, etc.)