Supplier - TBL Supplier - TBL Supplier - TBL Supplier - TBL Shirt - Members - TBL

You might also like

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

The council has t-shirt every school year, all students are mandatory to buy at least one.

The

Supplier_
council orders the t-shirt on one of its supplier. The Supplier_tbl has an attribute of supplier
I.D as its primary key, name, contact number, and address.

Supplier_tbl
Supplier I.D *
Name
Contact Number
Address

Shirt_Members_tbl was created due to the relationship establish by members to shirt. A


relationship of many to many was created. Many shirts was given to many members.

Shirt_Members_tbl

Shirt-Members I.D *
Shirt I.D FK

Supplier I.D *
Members I.D FK

Shirt_Mem
Shirt_tbl consist of shirt I.D as its primary key and size as its attribute. Shirt is connected to
the council establishing a relationship of one to many but due to the relationship order which

Shirt-Mem
has an attribute, we establish another table establishing a many to many relationship.

Name Shirt_tbl
Shirt I.D *

Shirt I.D
Size

F
Contact Num
Members
Address
Order_tbl was created because the relationship order has an attribute. So we make another
entity and establish a many to many relationship connecting the shirt I.D, supplier I.D, and
Council I.D as its foreign key, the amount, payment and date of payment.

Order_tbl

Order Details I.D *


Shirt I.D FK
Council I.D FK
Supplier I.D FK
Amount
Payment
Date

You might also like