Sie sind auf Seite 1von 2

c

cMidterm Project c
Question 1:

Define Referential Integrity-

c 
 c  ccc
c c  c cc  c ccc
ccccc c c  ccccc c  c c
 cc 
c
c ccccc

Remember that through referential integrity, it is possible for a customer


not to have a sales rep number, but it is not possible for a customer to
have an INVALID sales rep number. What does that mean? c
c

c c ccc  ccccc  cc ccc cc c


cc  cccc  cc c  cccc  c c
c cc c  cc c ccc ccc
 cc cc cccc c

Ô ample:

Kc ccc c c c cc ccc  c


ccc c cc  cc ccccc cc cc
cc ccccccc ccccc
ccccccc cc  ccccc
 c

Question 2

cCandidate keyc cc c c ! c cc ! cc c
ccc  cc cc c cc ! c c cc ! c
c c

cPrimary keyc ccccc cc cc" c


 c c
c c#c cc cc  c c ccc c
cc" c cc c cccc c

cForeign keyc cccc cc ccccc


 cc cc  c ccccccc$c  c c
 cc"c c
c c  cc cc
cNon-keyc c ccccccc ccc  c ccc
c
 c%c cccc c

cConcatenatingc c
cc cccc ccc

& c'c

'cConsider the following relation:cc

() *+c
#(+ c(+ c, -c,+ c#. -c.+ c. c
c
What is the repeating group in the relation?
c
c
c
cc cc cc#. -c.+ c. c c c
ccc ccc
c
c
'.) Converted to the first normal form:
c
() *+c
#(+ c(+ c, -c,+ c. -cc
c
.*c
#. -c.+ c. c
c
c