Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

2.

Question B
2.1.

BRANCH

Attribute:

branch_code (primary key)

address

telephone

fax

2.2.

STAFF

Attribute:

staff_code (primary key)

name

age

address

gender

branch_code (foreign key)

Sub Class Entity:PARTTIME STAFF

hour_pay

period

PERMANENT STAFF

basic_salary

commission

allowance

2.3.

CATEGORY

Attribute:

category_code (primary key)

name

2.4.

CUSTOMER

Attribute:

customer_code (primary key)

name

address

2.5.

PRODUCT

Attribute:

product_code (primary key)

name

price

category_code (foreign key)

2.6.

ORDER

Attribute:

order_code (primary key)

date

payment_type

total_cost

customer_code (foreign key)

staff_code (foreign key)

Composite Entity:ORDER DETAIL

order_code (primary key)

product_code (primary key)

quantity

discount

You might also like