Question: Create a SQL Server Stored Procedure ( SP ) to display the Sales Rep assigned to Customers that have a balance exceeding a given amount.

Create a SQL Server Stored Procedure (SP) to display the Sales Rep assigned to Customers that have a balance exceeding a given amount. That given amount should be the single input parameter of your SP. Use the cursor to generate and print the list of customers (first and last names only) whose balance exceeds the specified amount, and the Sales Rep name (sales reps first and last name only) for each customer in the list, like this:
The Sales Rep for Customer Joey Smith is: Susan Garcia
The Sales Rep for Customer Billy Rufton is: Richard Miller
The Sales Rep for Customer Sandra Pincher is: Donna Smith
Now, execute your Stored Procedure for customers whose balance exceeds $100, and display the output/results.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!