Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Find Sales Quota of Supervisors who are 1 level above employees. 2. Find average amount negotiated for each agent for all their sales in

Find Sales Quota of Supervisors who are 1 level above employees.

 

2. Find average amount negotiated for each agent for all their sales in last 100 days

 

3.Find what is the difference between first listed and last listed prices for a car (For each CarID there could be multiple listings, CarID+ListDate combination is unique)

 

4.Find popular models for each month in the year 2018.

 

 

5.Find 5 agents who sold most number of cars as well as most revenue generated (those agents should be in both top revenue and most number of cars)

 

 

6.Find Full Names of buyers who bought another vehicle within a year

 

image.jpeg


 

PK Buyer BuyerlD FirstName LastName DOB Gender City State ||+ PK UK1 ListedCars ListID CarlD Maker Model Year Color ListPrice UK1 ListDate Sales BuyerID AgentID ListID SalePrice Is_Financed Rate Down Payment SalesAgent PK AgentID FK FirstName LastName DOB Gender HireDate QuarterlyQuota YearlyQuota SupervisorID HH

Step by Step Solution

3.30 Rating (156 Votes )

There are 3 Steps involved in it

Step: 1

1 Find Sales Quota of Supervisors who are 1 level above employees This query retrieves the SupervisorID and QuarterlyQuota of supervisors who are one level above employees in the SalesAgent table sql ... 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_2

Step: 3

blur-text-image_3

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

Management Accounting Information for Decision-Making and Strategy Execution

Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young

6th Edition

137024975, 978-0137024971

More Books

Students explore these related Databases questions