首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
CSCC43代做、R设计编程代写
项目预算:
开发周期:
发布时间:
要求地区:
CSCC43 – Fall 2023 University of Toronto Scarborough
Intro to Databases – Assignment #3
Nov18, 2023
This assignment may be completed in a max group of 2 .
Please provide detailed answers to the following exercises.
Read the note on academic Integrity.
Instructions:
There are two parts in this assignment.
• Part 1 (3 questions – 40 points)
o Requires you to design ER Diagram given specification using any online drawing tool.
o Requires conversion from ER diagrams to relational schemas and improved version of
ER diagrams.
o Requires you to design an ER diagram given a relational schema.
o Note: Handwritten solutions/diagrams will not be accepted.
• Part 2 (6 questions with subparts - 60 points)
o Requires you to answer questions on functional dependencies and normal forms.
Submission: Quercus
For this assignment, you need to submit all typed solutions in a single PDF named
Assignment3.pdf. You can use LaTeX or any other word processing software. ER Diagrams should
be computer generated as well and should not be hand drawn.
Note: Late submissions with 10% penalty will be accepted until up to December 4th 11:59 pm.
No submissions will be accepted after that.
Assignment #3
Total: 100 points
Due Date: Dec 2nd, 2023 11:59pm
CSCC43 – Fall 2023 University of Toronto Scarborough
Part 1: Entity Relationship Model [40 marks]
Question 1 [25 marks]
For this question, you will design Entity Relationship Diagram and a database schema for
an Ice Hockey Tournament.
System Functional Requirements:
The administrator of tournament website and the database is the primary user who manages
the data associated with the tournament that includes information about players, teams,
coaches, matches, referees, etc.
The administrator wants following features included in your design and describes these
features as follows:
For each match, we store the series and the tournament day on which it takes place, which
match it is, (e.g., first match, second match, etc.) the date with day, month, year, the teams
involved in the match with the name of the city and the coach, and finally for each team
whether that team played at home. Each team can have multiple coaches and for each coach,
we record their name, salary, and city of birth.
We store the name and the surname of each player in each team with his date of birth and
main position. We store, for each day, how many points each team has, and we also store
for each match, the player of each team who played and in which position each player played
(the position can change from one game to another). For each match, we store the referee,
with first name, surname, city, and region of birth.
The match played as scheduled must be distinguished from those postponed. For a
postponed match, we store the date in which it is actually played. We also identify the
matches played in a city other than that of the home team; for each of these, we store the
city in which it took place, as well as the reason for the variation venue. For each player, we
are interested in the city of birth.
We also record the contracts between players and teams including the past contracts with
the date of beginning and end of the contracts for each player in each team. It is possible that
a player can have different contracts with the same team in different periods. For all contracts
we wish to know the date of commencement. Similarly, we also record contracts between
coach and teams.
Question 1.1 [15 marks]:
Design and draw an ER schema that captures the information given above. Your schema
should model explicitly entities and relationships in the domain of Ice Hockey Tournament,
also their attributes, generalization relationships, keys, and cardinality constraints.
Make necessary assumptions in order to complete your schema and state those assumptions
along with the diagram.
You may use domain knowledge to complete information missing in the given specifications.
CSCC43 – Fall 2023 University of Toronto Scarborough
Question 1.2 [10 marks]:
Remove any generalizations (subclass), unnecessary data and structural redundancies,
multi-valued attributes, optional relationships, and irregularities from your model.
If you did modify your ER schema, show the improved version of ER Diagram in this stage.
By removing weak entity sets (if any), translate your ER diagram into Relational schema
following the PostgreSQL syntax.
Question 2 [15 marks]
We wish to carry out a reverse engineering operation. That is, given a relational database,
we wish to construct its conceptual representation using the E-R model. The database is for
an application concerning trains and railway stations and is made up of the following
relations:
o STATION (Code, Name, City) with a referential constraint between the attribute
City and the CITY relation;
o CITY (Code, Name, Region);
o ROUTE (From, To, Distance), with referential constraints between the attributes
From and the relation STATION and between the attribute To and the relation
STATION; this relation contains all and only the pairs of stations connected
directly by a route (that is without intermediate stations);
o TRAINTIMETABLE (Number, From, To, DepartureTime, ArrivalTime) with
referential constraints between the attributes From and the relation STATION
and between the attribute To, and the relation STATION;
o TRAINROUTE (TrainNumber, From, To) with referential constraints between the
attribute TrainNumber and the relation TRAINTIMETABLE and between the
attributes From and To and the relation STATION;
o STOPTIME (TrainNumber, Station, Arrival, Departure) with referential constraints
between the attribute TrainNumber and the relation TRAINTIMETABLE and
between the attribute Station and the relation STATION;
o ACTUALTRAIN (TrainNumber, Date, DepartureTime, ArrivalTime) with a
referential constraint between the attribute TrainNumber and the
TRAINTIMETABLE relation;
o ACTUALSTOP (TrainNumber, Date, Station, Arrival, Departure) with a referential
constraint between the two attributes TrainNumber and Station and the
STOPTIME relation.
Question 2.1 [15 marks]
For the above schema, construct its conceptual representation using the E-R model.
Recall that derived redundancy can be present in terms of attribute, entity, or relationship.
Find out any such derived redundancy in this model.
CSCC43 – Fall 2023 University of Toronto Scarborough
Part 2: Functional Dependencies and Normalization [60 marks]
Question 1 [5 marks]
Consider a relation S with six attributes A, B, C, D, E, and F. You are given the following
dependencies: AB → C, BC → D, D → E, CF → B.
a) What are all the non-trivial functional dependencies that follow from the given
functional dependencies? Make sure that the functional dependencies you list have
exactly one attribute on the right hand side.
b) What are all the candidate keys of S?
c) What are all the superkeys of S that are not candidate keys?
Question 2 [5 marks]
Consider a relation R with five attributes A, B, C, D, and E. You are given the following
dependencies: A → B, BC → E, and ED → A.
a) List all the candidate keys for R.
b) Is R in 3NF? Explain why or why not.
c) Is R in BCNF? Explain why or why not.
Question 3 [15 marks]
For all of the parts below, assume you are given a relation R with four attributes A, B, C, and
D. In each part you are also given a set of functional dependencies, assume those are the
only dependencies that hold for R and do the following:
(i) Identify the candidate key(s) for R.
(ii) Identify the best normal form that R satisfies (1NF, 2NF, 3NF, or BCNF).
(iii) If R is not in BCNF, give a lossless-join decomposition of R into BCNF.
a) C → D, C → A, B → C
b) B → C, D → A
c) AB → C, AB → D, C → A, D → B
CSCC43 – Fall 2023 University of Toronto Scarborough
Question 4 [15 marks]
In each part below you are given a relation with attributes as well as a set of functional
dependencies that hold for that relation. For each part, do the following:
(i) List all the candidate keys for the relation.
(ii) Give a lossless-join and dependency-preserving decomposition of the relation
into 3NF.
a) R(A, B, C, D, E); {A → BC, CD → E, B → D, E → A}
b) S(A, B, C, D, E, F); {C → A, CD → E, A → B, D → F}
c) T(A, B, C, D, E); { A → CD, B → CE, E → B}
Question 5 [10 marks]
For each of the following relation schemas and dependencies do the following:
(i) Find all the 4NF violations.
(ii) Decompose the relations into a collection of relation schemas in 4NF.
a) R(A, B, C, D) with MVD's A àà B and B àà CD.
b) R(A, B, C, D, E) with MVD's A àà B and AB àà C and FD's A à D and AB à E.
Question 6 [10 marks]
Give counterexample relations to show why the following rules for MVD's do not hold. Hint:
apply the chase test and see what happens.
a) If A àà BC, then A àà B.
b) If A àà B, then A à B.
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做ceng0013 design of a pro...
2024-11-13
代做mech4880 refrigeration a...
2024-11-13
代做mcd1350: media studies a...
2024-11-13
代写fint b338f (autumn 2024)...
2024-11-13
代做engd3000 design of tunab...
2024-11-13
代做n1611 financial economet...
2024-11-13
代做econ 2331: economic and ...
2024-11-13
代做cs770/870 assignment 8代...
2024-11-13
代写amath 481/581 autumn qua...
2024-11-13
代做ccc8013 the process of s...
2024-11-13
代写csit040 – modern comput...
2024-11-13
代写econ 2070: introduc2on t...
2024-11-13
代写cct260, project 2 person...
2024-11-13
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!