Answered step by step
Verified Expert Solution
Question
1 Approved Answer
SLPRS CUSTOMER SLPRS_ ID SLPRS FNAME SLPRS LNAME SLPRS TELEPHONE SLPRS HIRE DATE CUST ID CUST TITLE CUST TELEPHONE CUST ADDRESS CUST CITY CUST STATE
SLPRS CUSTOMER SLPRS_ ID SLPRS FNAME SLPRS LNAME SLPRS TELEPHONE SLPRS HIRE DATE CUST ID CUST TITLE CUST TELEPHONE CUST ADDRESS CUST CITY CUST STATE CUST PC Lead Lead ID SLPRS ID Customer ID Date Expected_date Amount Possibility Status a) Write an SQL query to return the amount of Leads for each salesperson? b) Write a query to produce the maximum and minimum possibility of leads per Customer? c) Write an SQL query to return the number of leads per customer only for those With more than leads? d) Write an SQL query to return the number of leads with amount more than 10000per customer, but only for those customers with more than 2 leads? e) Write an SQL query to display all Leads with possibility greater than the average Possibility
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