Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

13th Edition Global Edition

1292263350, 978-1292263359

More Books

Students also viewed these Databases questions

Question

Why is a just-in-time compiler useful for executing Java programs?

Answered: 1 week ago