Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Below are the business rules that define relationships between entities INVOICE, SALESREP, CUSTOMER, PRODUCT, LINE, VENDOR. 1 ) An INVOICE is written by a SALESREP.
Below are the business rules that define relationships between entities INVOICE, SALESREP,
CUSTOMER, PRODUCT, LINE, VENDOR.
An INVOICE is written by a SALESREP.
Each sales representative SALESREP can write many invoices, but each invoice is
written by a single sales representative SALESREP
Each INVOICE is written for a single CUSTOMER. However, each CUSTOMER can have
many invoices.
An INVOICE can include many detail lines LINE Each invoice line item can only
contain one and only one INVOICE
Each PRODUCT can include many detail lines LINE Each invoice line item can
only contain one and only one PRODUCT
A VENDOR may supply zero or more products, but a PRODUCT may be supplied by one
and only one VENDOR.
The product information is stored in a PRODUCT entity.
The products vendor information is found in a VENDOR entity.
INVOICE entity: INVNUM PK INVSUBTOTAL, INVTAX, INVTOTAL
SALESREP entity: SLSREPNUM PK SLSREPLNAME, SLSREPFNAME, SLSREPINITIAL,
SLSREPEMAIL
CUSTOMER entity: CUSTNUM PK CUSTLNAME, CUSTFNAME, CUSTAREACODE,
CUSTPHONE, CUSTEMAIL, CUSTADDRESS, CUSTCITY, CUSTSTATE, CUSTZIPCODE
INVLINE entity: INVLINENUM PK INVLINEPRICE, INVLINEQUANT, INVLINETOTAL
VENDOR entity: VENDCODEPK VENDNAME, VENDCONTACT, VENDEMAIL
PRODUCT entity: PRODCODEPK PRODPRICE, PRODDESCRIPTION, PRODQOH
What are the primary keys and foreign keys for this?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started