Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

supplier (sID, SName, address, discount) produce (pID, pName, type, price, supplierID) branch (bID, address, managerName) orders (OID,produceID, qty,oDate, branchID) Details held on suppliers in the

image text in transcribedimage text in transcribed

supplier (sID, SName, address, discount) produce (pID, pName, type, price, supplierID) branch (bID, address, managerName) orders (OID,produceID, qty,oDate, branchID) Details held on suppliers in the supplier table are a unique ID (sID), name, address and the discount they give to the fast food restaurant (a percentage discount on eaclh order). Each supplier supplies multiple produce but each unique produce is onl;y supplied by one supplier. The produce table contains a unique ID per produce (pID), the name of the produce (e.g., chips, burger buns, etc.), the type of produce (e.g., fresh, frozen, beverage, etc.), the price of the produce per unit (e.g. price per box of salt portions) and the ID of the supplier of the produce (supplierID) which is a foreign key to sID in the supplier table. Details held on branches in the branch table are a unique branch ID (bID), branch address and the name of the branch manager. The orders table holds details of each order where an order may comprise multiple produce. Each entry has an order ID (oID), produce ID (produceID) and the branclh ID (branchID) which is a foreign key to bID in the branch table. In addition, the quantity of the produce required is stored (qty) and the order date (oDate). The attribute produceID is a foreign key to pID in the produce table

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago