Question: Problem 1 A company creates one or more purchase orders ( PO ) for each customer, and every time a customer places an
Problem
A company creates one or more purchase orders PO for each customer, and every time a customer places an order, an invoice is generated and it's assigned a PO Each product that's ordered constitutes a line item on the invoice.
Here's a relation for tracking invoices for purchase orders POID is "Purchase Order ID:
POINVICE POID, CustID, CustName, ContactName, OrderDate, BillToAddress,
ShipToAddress, ProdID, ProdDescription, UnitPrice, Quantity, AmountDue
And here are the functional dependcies for it:Normalize the relation above through BCNF including reference statements, using these relation names:POINVOICELINEITEMCUSTOMERPRODUCT
Now, write a SQL script called LastnamePEsqI that creates a database called LastnamePE and then creates tables for these five relations, including primary and foreign keys. You must specify constraint names for the foreign keys.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
