Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Tampa Autoparts Corp. (TAC) is a medium-sized company located in Tampa, Florida. The company manufactures ball bearings, axles, washers, screws, locknuts, and various other auto

Tampa Autoparts Corp. (TAC) is a medium-sized company located in Tampa, Florida. The company manufactures ball bearings, axles, washers, screws, locknuts, and various other auto parts. Sales for the fiscal year ended September 30, 2019 amounted to $92.5 million. The company's accounting system is housed in a SQL Server database. TAC's business processes relating to product sales are indicated below. TAC has two basic types of customers: automobile service stations and auto parts stores. All sales are on credit (no cash sales). Auto parts stores customers receive a discount on products ordered, while service stations do not. Only approved customers may place sales orders for products in TAC's finished goods inventory. Customers place orders over the phone and provide their unique customer number at that time. Regarding customers, TAC keeps track of their name, address, balance, credit limit, and the date the firm became a customer. Every sales order is processed by one salesperson and a salesperson can obviously have processed many orders. The shipping date for the order must be entered. The shipping date should be after the order date, but not more than one month after the order date. Orders are shipped either via UPS or by Tampa Trucking. A sales order specifies one or more products. Each product has a product number, product name, cost price, standard selling price, and quantity on hand. Many products can be on an order and a product can be on many different orders. Each product falls in one category, as indicated by the CategoryID field. Each product category has a manager and a standard overhead cost per unit for products in that category. A manager can be assigned to more than one categories. At the time of order entry, the salesperson selects the products desired by the customer and also enters the selling price and quantity ordered of each product on each order. Since only products in stock can be ordered, there is exactly one shipment associated with every sales order. Products ordered before noon are usually shipped to the customer the same business day; products ordered after noon are usually shipped the next business day. A clerk in the warehouse department first retrieves the order details from the system, picks the products on each order from the warehouse shelves, and packages them to be shipped to the customer. The employee then creates an invoice and a shipping document indicating the products packaged and the shipper who will actually deliver the products to the customer. As indicated above, TAC uses either UPS or Tampa Trucking for the deliveries to customers. When the products are delivered to the customer, the invoice accompanying the shipment indicates the amount to be paid by the customer. Imagine that you are a consultant hired by TAC and are tasked with providing management with a better understanding of sales performance and contribution margins of its products. You have been asked to work with Ms. Janice Roberts, the controller at TAC. After discussions with Ms. Roberts, you have determined that there are a set of specific questions that need to be answered. Additionally, you seek to perform additional queries for the purpose of generating overall analytics to help management understand product sales and profitability performance. You have been granted "read only" access to TAC's SQL database. The database diagram follows. You are to perform SQL queries to answer the specific questions posed by Ms. Roberts and also generate various analytics that might shed light on product sales performance and profitability along several dimensions that would be of interest to management.

Question: Please generate query for SQL

2. Our sales clerk Johnny Cash is out sick. We need a listing of orders taken by him in the first 10 days of September, so that we can have another salesperson follow up on these orders. Please show the order date, product number, standard selling price, and the actual order price of all products ordered on orders taken by Johnny between 9/1/2019 and 9/10/2019.

image text in transcribed

PRODUCTS ORDERED ORDERNO 9 PRODUCTNO PRICE QTY DISC_PERCENT ORDERS ORDERNO ORDER_DATE EXP_SHIP.DATE BD CUSTOMERNO oo SHIPPERNO COMMENTS EMPLOYEES EID NAME PHONE_NO DEPARTMENT RANK DATE_EMPLOYED SALARY wa PRODUCTS 9 PRODUCTNO PRODUCT_DESCRIPTION CATEGORYID COST_PRICE STANDARD SELLING PRICE QTY ON HAND AVG_ORDER QTY CUSTOMERS CUSTOMERNO Name Address CATEGORIES CATEGORYID DESCRIPTION MANAGER OVERHEAD State Zip Type Balance Cr_limit Customer_since INVOICES INVOICENO SHIP_DATE ORDERNO EID SHIPPERS 9 SHIPPERNO NAME PHONE

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

Students also viewed these Databases questions

Question

4. How has e-commerce affected business-to-business transactions?

Answered: 1 week ago

Question

1. Which position would you take?

Answered: 1 week ago