Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

image text in transcribed

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

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

Step: 3

blur-text-image

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

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions