Sie sind auf Seite 1von 2

# c

cMidterm Project c
Question 1:

## Define Referential Integrity-

c 
 c  ccc
c c  c cc  c ccc
ccccc c c  ccccc c  c c
 cc 
c
c ccccc

## 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 ccc  ccccc  cc ccc cc c

cc  cccc  cc c  cccc  c c
c cc c  cc c ccc ccc
 cc cc cccc c

Ô ample:

## Kc ccc c c c cc ccc  c

ccc c cc  cc ccccc cc cc
cc ccccccc ccccc
ccccccc cc  ccccc
 c

Question 2

cCandidate keyc cc c c ! c cc ! cc c
ccc  cc cc c cc ! c c cc ! c
c c

## cPrimary keyc ccccc cc cc" c

 c c
c c#c cc cc  c c ccc c
cc" c cc c cccc c

## cForeign keyc cccc cc ccccc

 cc cc  c ccccccc\$c  c c
 cc"c c
c c  cc cc
cNon-keyc c ccccccc ccc  c ccc
c
 c%c cccc c

cConcatenatingc c
cc cccc ccc

& 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
cc cc cc#. -c.+ c. c c c
ccc ccc
c
c
'.) Converted to the first normal form:
c
() *+c
#(+ c(+ c, -c,+ c. -cc
c
.*c
#. -c.+ c. c
c
c