Question

In: Computer Science

Print the total amount, the average dollar value of service visits (parts and labour costs) and...

Print the total amount, the average dollar value of service visits (parts and labour costs) and the number of those visits for Acura, Mercedes and Jaguar car makes that are sold between September 2015 and December 2018 inclusive

Solutions

Expert Solution

Solution)

Note: I have used Showroom as the name of the Table and used attribute names of my own because it was not mentioned in the question.
Query:
SELECT SUM(amount),AVG(service_cost),COUNT(no_of_visits)
FROM Showroom
WHERE (MAKE=' Acura' OR MAKE=' Mercedes' OR MAKE='Jaguar ') AND
( Sold_On IN BETWEEN '9/1/2015' AND '12/31/2018') ;

Explaination:
1.In the above query first we are checking for the condition that the car is sold in between September 2015 to December 2018 or not.
2.If yes then we are checking for the make ,that if the make of the cars sold between this time is either Acura,Mercedes,or Jaguar or not.
3.After this we get our required table of cars which are of particular make and sold between the given time period.
4.Now we have to simply print or select the required things from the table.
5. We select the Sum of the amount of these cars and average of the cost of service on these cars and count the number of visits a customer has visited the showroom for buying these cars .

I HOPE YOU LIKE THIS ANSWER PLEASE DO UP VOTE THANK YOU.


Related Solutions

No. of Products Total Variable Costs, $ Total Costs $ Average Fixed Cost $ Average Variable...
No. of Products Total Variable Costs, $ Total Costs $ Average Fixed Cost $ Average Variable Cost $ Average Total Cost $ Marginal Cost$ 0 0 1 12 2 20 3 24 4 27 5 40 6 65 7 98 Assume that the fixed cost is $80, calculate the above costs in the table and explain the difference between average total costs and marginal costs. In a graph illustrate the Average Total Cost and Marginal Cost Curves, explain their relationship....
a) Find ABC’s average fixed costs, average variable costs, average total costs and marginal costs.
Quantity Total Fixed Cost Total Variable Cost 0 100 0 1 100 50 2 100 70 3 100 90 4 100 140 5 100 200 6 100 360 a) Find ABC’s average fixed costs, average variable costs, average total costs and marginal costs. b) Since ABC is charging the customers at the price of $50, it seems that the company cannot make a profit. The owner decides to shut down operations. What are ABC’s profits/losses? Should the owner shut down...
Dental Diversity provides three basic service appointments; Cleaning, Check-up, and Full service. Total annual costs average...
Dental Diversity provides three basic service appointments; Cleaning, Check-up, and Full service. Total annual costs average $750,000. An RVU analysis indicates the following: Annual Average Appointments RVUs/appointment Cleaning 3,000 4 Check-ups 3,500 6 Full Service 1,700 10 B. If the goal is a 37.5% profit margin, what should be the price for each type of appointment?
If the Total Dollar Business Value Completed of a Portfolio is a key value metric for...
If the Total Dollar Business Value Completed of a Portfolio is a key value metric for executives, how, as a PMO leader, would you try to improve it every year?
Jim runs a nursery. Identify the following costs he faces as fixed costs, average fixed costs, variable costs, average variable costs, total costs, average total costs, or marginal costs:
Jim runs a nursery. Identify the following costs he faces as fixed costs, average fixed costs, variable costs, average variable costs, total costs, average total costs, or marginal costs:a) The rent he pays on his greenhouse in the short runb) The rent he pays on his greenhouse in the long runc) the cost of soil, water, and seeds in the short rund) the per-unit cost of producing a nursery plant in the short rune) the opportunity cost of shutting the...
Use the following data to determine the total dollar amount of assets to be classified as...
Use the following data to determine the total dollar amount of assets to be classified as current assets. Sunland Company Balance Sheet December 31, 2022 Cash $187000 Accounts payable $201000 Accounts receivable 140000 Salaries and wages payable 27000 Inventory 170000 Mortgage payable 246500 Prepaid insurance 90700 Total liabilities $474500 Stock investments (long-term) 261000 Land 281000 Buildings $303000 Common stock $371200 Less: Accumulated depreciation (63500) 239500 Retained earnings 748500 Goodwill 225000       Total stockholders' equity $1119700 Total assets $1594200            Total liabilities and...
1. ____ is the ratio of total loan amount by the total value of the property....
1. ____ is the ratio of total loan amount by the total value of the property. Select one: a. housing-to-income-ratio b. loan-to-value ratio c. debt-to-income ratio d. liability-to-market value ratio 2. The five C s of credit stands for: Select one: a. capacity, character, conditions, collateral, and capital. b. capability, cooperation, creativity, collateral, and capital. c. conditions, competence, capital, conditions, and capacity. d. cooperation, capacity, collateral, creativity, and conditions. 3. Non-depository institutions that lend funds to individuals to finance consumer...
determine the total amount of manufacturing overhead,product costs & period costs
Caroline Company reports the following costs and expenses in May.Factory Utilities 11,500Depreciation on factory equipment 12,650Depreciation on delivery trucks 3,800Indirect factory labor 48,900indirect materials 80,800Direct materials used 137,600Factory manager's salary 8,000Direct labor 69,100Sales salaries 46,400Property taxes on factory building 2,500Repairs to office equipment 1,300factory repairs 2,000Advertising 18,000office supplies used 2,640 InstructionsFrom the information, determine the total amount of:(a) Manufacturing overhead.(b) Product costs.(c) Period costs.
The table below has the costs for a specific period:    Cost item Amount Direct labour...
The table below has the costs for a specific period:    Cost item Amount Direct labour $90,000 Direct material $80,000 Advertising $40,000 Factory supervision $50,000 Sales Commission $60,000 Depreciation, administrative office equipment $5,000 indirect materials, factory $7,000 Depreciation, factory building $10,000 Administrative, office supplies $3,000 Required: What is the total period cost? What is the total direct product cost? What is the total indirect product cost? From the cost items listed in the table above, list one indirect product cost...
The table below has the costs for a specific period:    Cost item Amount Direct labour...
The table below has the costs for a specific period:    Cost item Amount Direct labour $90,000 Direct material $80,000 Advertising $40,000 Factory supervision $50,000 Sales Commission $60,000 Depreciation, administrative office equipment $5,000 indirect materials, factory $7,000 Depreciation, factory building $10,000 Administrative, office supplies $3,000 Required: What is the total period cost? What is the total direct product cost? What is the total indirect product cost? From the cost items listed in the table above, list one indirect product cost...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT