Question

12.List all customers, title, artist, quantity ordered 13.List all customers along with the total revenue received...

12.List all customers, title, artist, quantity ordered

13.List all customers along with the total revenue received from that customer (revenue would be total retail price)

14.List each state and the number of customers from that state

https://imgur.com/a/CN7SQIf

Homework Answers

Answer #1

12.List all customers, title, artist, quantity ordered

SELECT c.customer_name,i.title,i.artist,ol.order_qty
FROM Customers c
JOIN Orders o
ON o.Customer_Id = c.Customer_Id
JOIN OrderLine ol
ON ol.Order_Id = o.Order_Id
JOIN Items AS i
ON i.Item_Id = ol.Item_id

13.List all customers along with the total revenue received from that customer (revenue would be total retail price)

SELECT c.customer_name,SUM(ol.Order_qty*i.unit_price) as TotalRevenue
FROM Customers c
JOIN Orders o
ON o.Customer_Id = c.Customer_Id
JOIN OrderLine ol
ON ol.Order_Id = o.Order_Id
JOIN Items AS i
ON i.Item_Id = ol.Item_id

14.List each state and the number of customers from that state

SELECT customer_state,COUNT(c.CustomerID)
FROM Customers c
GROUP BY customer_state
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Adger Corporation is a service company that measures its output based on the number of customers...
Adger Corporation is a service company that measures its output based on the number of customers served. The company provided the following fixed and variable cost estimates that it uses for budgeting purposes and the actual results for May as shown below: Fixed Element per Month Variable Element per Customer Served Actual Total for May Revenue $ 5,600 $ 178,000 Employee salaries and wages $ 63,000 $ 1,000 $ 96,500 Travel expenses $ 550 $ 15,900 Other expenses $ 42,000...
Adger Corporation is a service company that measures its output based on the number of customers...
Adger Corporation is a service company that measures its output based on the number of customers served. The company provided the following fixed and variable cost estimates that it uses for budgeting purposes and the actual results for May as shown below: Fixed Element per Month Variable Element per Customer Served Actual Total for May Revenue $ 6,600 $ 213,500 Employee salaries and wages $ 62,000 $ 2,300 $ 141,100 Travel expenses $ 540 $ 15,700 Other expenses $ 41,000...
3.What does this line suggest about the relationship between total revenue from admissions at the Metropolitan...
3.What does this line suggest about the relationship between total revenue from admissions at the Metropolitan Museum of Art and admission fees. Explain suing your understanding of the relationship between total revenue and price elasticity of demand. Support your answer with a graph if possible. They can probably charge much more and not lose a customer.” Many museums find themselves having to choose between public policy considerations, which would promote access and thereby lower or eliminate admission fees, and economic...
Project Title: Development of pre-employment selection testing for entry-level Retail Salespersons in retail clothing stores. Scope...
Project Title: Development of pre-employment selection testing for entry-level Retail Salespersons in retail clothing stores. Scope of Project: The entry-level Retail Salesperson position is responsible for selling the popular “Big Turtle” clothing and merchandise at their retail stores. There are approximately 50 retail stores located throughout the Southeast region, employing over 600 Retail Salespersons. Currently, turnover for this title is averaging 50% annually. Big Turtle Clothiers, Inc. (BTC) also anticipates opening 10 new stores per year for the next 5...
Problem 1 The table in worksheet "Problem 1" is a list of orders from a company...
Problem 1 The table in worksheet "Problem 1" is a list of orders from a company that sells sports products. Each row is an order. Only one type of product is sold in each order, but the quantity and price of each unit vary across orders. Information about each order includes location, customer, segment, product sold, order date, the list price per unit, the price each unit was actually sold in the order (unit price), quantity of units sold, revenue...
12) When quantity supplied equals quantity demanded: Multiple Choice a)the market forces push the economy to...
12) When quantity supplied equals quantity demanded: Multiple Choice a)the market forces push the economy to produce more. b)equilibrium is reached. c)the market forces push the economy to produce less. d)the market forces cease to function. 13)Consider a market that is in equilibrium. If it experiences both an increase in demand and an increase in supply, what can be said of the new equilibrium? The equilibrium: Multiple Choice a)quantity will definitely rise, while the equilibrium price cannot be predicted. b)price...
13. In a company in the short run the production of a product requires one variable...
13. In a company in the short run the production of a product requires one variable input along with a fixed input. The total product of the units of the variable input from 0 to 5 are, respectively, 0, 10, 18, 24, 28, and 30. Each unit of the product can be sold for $3. The marginal product of the second unit of the resource is: A. 4 B. 6 C. 8 D. 10 14. In a company in the...
Adger Corporation is a service company that measures its output based on the number of customers...
Adger Corporation is a service company that measures its output based on the number of customers served. The company provided the following fixed and variable cost estimates that it uses for budgeting purposes and the actual results for May as shown below: Fixed Element per Month Variable Element per Customer Served Actual Total for May Revenue $ 5,900 $ 216,500 Employee salaries and wages $ 66,000 $ 1,300 $ 116,200 Travel expenses $ 580 $ 19,700 Other expenses $ 45,000...
12. Elfalan Corporation produces a single product. The cost of producing and selling a single unit...
12. Elfalan Corporation produces a single product. The cost of producing and selling a single unit of this product at the company's normal activity level of 51,000 units per month is as follows: Direct materials $ 48.10 Direct labor $ 9.20 Variable manufacturing overhead $ 2.20 Fixed manufacturing overhead $ 19.50 Variable selling & administrative expense $ 4.00 Fixed selling & administrative expense $ 19.00 The normal selling price of the product is $108.10 per unit. An order has been...
Dep Delay Arr Delay q1 -13 -9 q3 1 3 IQR 14 12 stdev 9.211846 9.660933...
Dep Delay Arr Delay q1 -13 -9 q3 1 3 IQR 14 12 stdev 9.211846 9.660933 negative 291 zero 39 positive 170 total (should be 500) 500 all data is for arrival data. please help me explain these can someone help me answer these questions and tell me how to put them in excel.thanx in advance 1.    Define a random variable (X) so that your chosen data set represents values of X. 2.    Is your chosen random variable discrete or...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT