Quiz 2 Answer Key

student Name:
Student ID:
K€1
cse355 - F'13lQ#
Asst.Prof.Dr. Mustafa AeAodLU
Marmara Universify
-
Faculty of Engineering
1
- Department ofComputer Engineering
Fall2013 - CSE355 Database Svstems
Quiz#2
[31.10.2013
| Duration:45 min)
[50 pts] Map the following enhanced entity-relationship diagram into a relational database schema. Please
state any assumptions that you have made. (Do not forget to use arrows for foreign key - primary key
references.)
v.hicl.lO
mrka
Yara
modd
typr(irGrr, irTruck)
bN.tn
bAdd..r.(city,
drt.,
dpGodrl
owN€&
P€E'.N-+DDEE T
diee.Lieoe
o
CoWnt
6 br^
e.lD
nof€qlo.1tts
R&ltTqLsD_vsthcL€
OWN€P-K€QI'T
v€f+tcLe
I
u
rcLa2P,6S9
student Name:
Student lD:
K€'l
cse355 - F'131Q#1
Asst.Prof.Dr. Mustafa AGAOe LU
2l
[50 pts] Map the following entity-relationship diagram into a relational database schema. Please state any
assumptions that you have made. (Do not forget to use arrows for foreign key - primary key references.)
Frt_-l
lquemrtvl
:
PHARMA-COMPANY
PATTNr
p.iaaglPk4*i,ianjn
D4(-T.a&_tp€t tftLT\
leq6ffipedaoL
reCry*1Na.uz
Pttfrr<*1A_Caqptry
P
C-o^IT<ACT
tlAKn+tf