Question: The British University in Dubai Database Systems ( CS 2 0 5 / 2 1 6 ) Assignment# 1 Term 2 AY 2 3 /
The British University in Dubai Database Systems CS
Assignment# Term AY
A ER Design, Mapping ER to Relational Model
Overview
In this assignment, we ask you to use your knowhow to model the management of a transport company. It is a question of proposing a conceptual model of data and the list of management constraints to capture the company's information system.
Management of a transport company
A transport company has trucks and drivers. Each truck is characterized by its weightkg and volume m cubic meter capacities.
The Company provides deliveries. A delivery concerns a certain number of boxes to be carried from one address to another. Pickup and dropoff are done on the same day. The trucks make rounds to deliver. When making its rounds, a truck leaves the office station empty in the morning; it then stops in a certain number of cities to load or unload a delivery before returning empty to the office station in the evening. The same truck ensures several deliveries during its round.
At any given time, it may contain multiple deliveries. We want to be able to answer the questions:
What deliveries were made by truck JV on Friday, November How many kilometres has it taken since the last oil change?
What are the deliveries made by the driver Damien LIGET?
Through which towns does truck JV make its rounds on Friday, November
The truck used by driver X on Friday, November goes through Maramaa, then Tartu.
It's necessary to deliver m and kg between these two cities. Is there enough free
space in the truck?
It is Friday, August : am who is the Trucks driver whose tires were changed on
August
Questions
Model an ER diagram for this problem. You have to specify all the Integrity constraints to be respected. Draw your ER diagram using any graphical tools you desire.
Map your ER diagram to a relational schema, draw your relations tables and use arrows to represent the referential integrity constraints and underline primary keys in each relation
Based on your relational model, give the relationalalgebraic expression ofthe following:
o Listalltrucksofthecompany.
o Countthenumberofcompanytruckswithavolumegreaterthanm o What are the deliveries made by the driver Damien LIGET?
o WhatdeliveriesweremadebytruckJVonFridayNovember
o List ofcities crossed by truck JV on Wednesday, July o ListoftruckspreviouslydrivenbyX.
o Numberofboxesdeliveredbydriverxsincebeinghired.
B Evaluation of relationalalgebraic expressions
Consider the relations DOGS, MEN and TRAIN.
DOGS DName Arthur
Billy Corso
MEN
MName Armand David Alois Arthur
TRAIN
Men Armand David Alois
Dog Year Corso Billy Corso
Givethevalueiewritetherelationcalculatedbyofthefollowingexpressionsandindicatein English what they calculate:
SayinEnglishwhatthefollowingconditionsdo
cup
Men
Givethealgebraicexpressionofthefollowingterms
All possible pairs dog; human
Dogs that are trained
DogstrainedbyAloisafter
NumberofDogs
Numberoftraineddogswithoutduplication
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
