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

The given E-R diagram can be transformed into the following set of 3NF relations:

Relation 1: VENDOR

Attributes: Vendor ID, Address

Key: Vendor ID

Relation 2: PART

Attributes: Item Number, Description

Key: Item Number

Relation 3: PRICE QUOTE

Attributes: Quote Quantity, Price, Priced_at, Vendor ID, Item Number

Keys: Vendor ID, Item Number

Foreign Keys: Vendor ID references VENDOR, Item Number references PART

Relation 4: PART RECEIPT

Attributes: Order Number, Date, Order Quantity, Item Number

Key: Order Number

Foreign Key: Item Number references PART

These relations are in 3NF because each non-prime attribute is fully functionally dependent on the primary
key, and there are no transitive dependencies.

Restaurant:

- Rest_ID (primary key)

- Name

- Location

- Contact_Number

- Opening_Hours
Manager:

- Manager_ID (primary key)

- Name

- Email

- Phone_Number

- Hire_Date

Menu:

- Menu_ID (primary key)

- Restaurant_ID (foreign key)

- Menu_Name

- Description

Item:

- Item_ID (primary key)

- Menu_ID (foreign key)

- Item_Name

- Description

- Category

- Is_Vegetarian

- Is_Gluten_Free

Item Price:

- Item_Price_ID (primary key)

- Item_ID (foreign key)

- Price

- Currency

- Date_Effective

You might also like