Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Design an ERD and SQL for the following situation. Express any many to many relationships with an associative entity.A retailer wants to maintain a database

Design an ERD and SQL for the following situation. Express any many to many relationships with an associative entity.A retailer wants to maintain a database with the following business rules:
a. All people in the database must have basic demographics attached to them (name,
mailing address, email address, and phone number)
b. A CUSTOMER must be tracked by shipping information
c. A SALESREP has an employee number and is given a company email address
Page 3 of 3
d. An INVOICE is written by a SALESREP. Each sales representative can write many invoices,
but each invoice is written by a single sales representative. Each invoice also includes
sales information like date, tax and total.
e. The INVOICE is written for a single CUSTOMER. However, each customer can have many
invoices.
f. An INVOICE can include many detail lines (LINE), each of which describes one product
bought by the customer. That line indicates quantity purchased in the sale.
g. The product information is stored in a PRODUCT entity. Products must include a
description, the price of the product and the quantity on hand for the retailer.
h. The products vendor information is found in a VENDOR entity. It includes the vendors
name and a contact person at the vendor.

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

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

More Books

Students also viewed these Databases questions