Professional Documents
Culture Documents
المشروع
المشروع
1
List the names of all the entity types in the specification above and for
each entity type specify the list of attributes
1: airplane
2: technician
2
3: pilot
4: flight
3
LIST the names of all the Relationship in the specification above and
for each Relationship type specify, if exist , the last of attribute and
the cardinality of each relation
M=MANY , N=0,1,2
SN ENTITIES CARDINALITY
1 AIRPLANE & FLIGHT 1:M
2 PILOT &AIRPLANE M:1
3 TECHNICIAN & AIRPLANE M:1
4 THE TEST & AIRPLANE M:1
5 TECHNICIAN & THE TEST 1:M
TECHNICIAN
HAVE
THE TEST
HAVE
HAVE
AIRPLANE
FLIGHT HAVE
VEVE
4
ANSWER EXERCISE 2
• Bank
• Account
• Loan
• Customer
5: Is there a weak entity type? If so , give its name and its partial key
• Weak entity type : bank_branch
• Partial key : branch_no
• Identifying relationship : branches
• A bank_branch cannot exist without an associated bank
6: list on the following table the all relationship type, and specify the
constraint type on each participation (partial or total) of an entity in
relationship type
Relationship First entity Second entity Participation first and
name second entity
branches bank Bank_branch 1:N
accts Bank_branch account 1:N
loans Bank_branch loan 1:N
A_C account customer N:M
L_C loan customer N:M
1: CUSTOMER
5
2: Bank
3: bank_branch
4: ACCOUNT
5: Loan