Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Extra Credit Understanding Databases Use the following partial database tables to answer the required questions: Sales Table Sales Event # Dat e Terms Salesperson ID
Extra Credit
Understanding Databases
Use the following partial database tables to answer the required questions:
Sales Table
Sales Event # Dat
e
Terms Salesperson ID Customer ID
net
net
COD
SaleInventory Table
Sale Event # Inventory Item # Inventory Quantity Price each
Salesperson Table
Salesperson ID Last Name First Name
Cleaves Mateen
Warrick Peter
Peterson Morris
Janakowski Sebastian
Cashier Table
Cashier ID Last Name First Name
Weinke Chris
Outzen Marcus
Cash Receipts Table
Cash
Receipt #
Date Check
#
Cashier
ID
Sales
Event #
Customer
ID
Cash
Account #
Amount
Received
$
Customer Table
Customer ID Last Name First Name Address Zip
Conrad Chris Longfellow Dr
Anderson Paul Sunderland Lane
Padgham Donna Algonquin Road
Oliver Andrew Bonita Dr
Cook Carol Secondary Ave.
ZipCode Table
City State Zip
Paragould AK
Sioux City IA
Mason MI
Clearwater FL
Fremont CA
Cash Table
Cash # Type of account Bank Name
Regular checking North First
Payroll checking account Credit Grantors
Inventory Table
Inventory Item # Description
XL Tshirt
XL Sweatshirt
XXL Tshirt
Felt pennant
Ping pong ball
Golf ball
XL Polo shirt
Bumper sticker
Foam football
Required:
a What events, resources, agents relationship, and data reduction or types must have been included in the
underlying conceptual model from which these relational tables were designed? Label the tables as events,
resources, agents, data reductions or types and relationships
b Identify the primary key of each table.
c Identify each foreign key in the database.
d List the resources and agents involved in Sale event
e List the resources and agents involved in Cash Receipt
f Suppose you wanted to generate an invoice bill for customer that lists the customer name and address, the
salesperson name, and all other information about the sale, including the items sold. Which tables contain the
data you will need to generate the invoice?
g Suppose you wanted to generate a report listing each customer name and the amount due from each customer.
Which tables contain the data you need to generate the report?
h Explain why total sales amount did not need to be included as an attribute in the sales table. What are the pros
and cons associated with leaving this attribute out of the database tables?
i If you need to record the following sale:
Sale event ; on ; COD terms; Salesperson ; Customer ; units of item for a total of $ and
units of item
What tables would you use? How many records would you add or modify in the tables
j If you need to maintain your records to reflect a change in Donna Padgham's last name and address, what tables
would you use? How many records would you add or modify in the tables
k If you need to record the following cash receipt:
Cash receipt ; on ; from customer to pay off sale event ; in the amount of $ deposited into
cash account #
What tables would you use? How many records would you add or modify in the tables
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