The following slides introduce some database terms.
|
|
sid
, lname
} is a superkey for the student
table.
sid
is a candidate key for the student
table.
NULL
; e.g., cno
is a foreign key for enrollment
table.
T
with Head(T)=A1…An
, and a tuple t
in T
, the restriction of the tuple t
is a subset {Ai1, ..., Aik}
of {A1, ..., An}
, denoted t[Ai1, ..., Aik]
, as the k
-tuple of t
in the columns named.
For example, the restriction of the tuple
t = (c003, Allied, Dallas, 12.00)from the table customer to the set {cid , cname } is denoted by
t[cid, cname] = (c003, Allied) . |
|
◀
Previous |
Slide 12.7: The relational rules (cont.) Slide 12.9: Table key (cont.) Home Print version |
▶
Next |
Our holiday party is such a bore. Year in, year out (annually without change) the owner makes the same dumb jokes. |