Question
Write SQL for each question by using the tables below . CUSTOMERS TABLE OFFICES ORDERS PRODUCTS SALESREPS 1- How many salespeople exceeded their quota? 2-
Write SQL for each question by using the tables below .
CUSTOMERS TABLE
OFFICES
ORDERS
PRODUCTS
SALESREPS
1- How many salespeople exceeded their quota? 2- How many orders are over $25,000? 3- Find the average order amount, the total order amount, the average order amount as a percentage of the customer's credit limit and the average order amount as a percentage of the sales representative's quota? 4- What is the quota range assigned in each office? (Max - min according to sales personnel) 5- How many salespeople work in each office? 6- How many different customers are served by each salesperson? 7- List the total order amount for each customer of each salesperson? 8- Calculate the total order of each salesperson? 9- What is the average order size for each salesperson with orders totaling more than $30000? 10- For each office consisting of two or more people, calculate the total quota and total sales of all salespeople working in the office?
* (New)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