this pdf excerpt
this pdf excerpt
this pdf excerpt
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
)n cov-<br />
,llue is<br />
r bcing<br />
rr.rlued<br />
tluct of<br />
'r)tllpo-<br />
csc\ral- cnrini- e<br />
on the<br />
rti their<br />
rcc'pt of<br />
idr'ntiff<br />
tlcation<br />
,cations,<br />
:tribute.<br />
t ributes<br />
on, irnd<br />
l bLltes.<br />
;. Salary,<br />
l'tc com-<br />
-'l'rts. We<br />
diviclual<br />
,oress.<br />
rme, Sex,<br />
-3.<br />
Fname )( Minit )( Lna.e Project<br />
) ( Hours<br />
3.3 Entity Types, Entity Sets, Attributes, and Keys 69<br />
Name ) z--\\I-,z----=\ ( Works on<br />
-\(Ssn<br />
)l(Salary) )-=:<br />
Depadment ) \\\<br />
| /<br />
--l<br />
EMPLOYEE<br />
(Supervisor<br />
Birth date<br />
Address<br />
So f-ar, we have not represented the fact that an employee can work on several projccts,<br />
nor have we represented the number of hours per week an employee works on<br />
c.rch project. This characteristic is iisted as part of the third requirement in Section<br />
-r.1, and it can be represented by a multivalued composite attribute of EMPLOYEE<br />
c.rlled Works on with the simple components (Project, Hours). Alternatively, it can be<br />
represented as a multivalued composite attribute of PROJECT called Workers with<br />
rhe simple components (Employee, Hours). We choose the first alternative in Figure<br />
r.8, which shows each of the entity types just described. The Name attribute of<br />
EMPLOYEE is shown as a composite attribute, presumably after consultation with<br />
thc users.<br />
Figure 3.8<br />
Prelrminary design of entity<br />
types for the COMPANY<br />
database. Some of the<br />
shown attributes wiil be<br />
ref ined into relationships,