Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Create a stored procedure called spFindinvoices that accepts two parameters- @NameVendor of type varchar(100) and @BalanceLimit of type smallmoney. This procedure displays the VendorName,

image text in transcribed

1. Create a stored procedure called spFindinvoices that accepts two parameters- @NameVendor of type varchar(100) and @BalanceLimit of type smallmoney. This procedure displays the VendorName, InvoiceNumber, InvoiceDueDate and Balance of VendorName with the name equal to @NameVendor and where the balance is greater than @BalanceLimit. If you call/test the procedure with @NameVendor = 'Federal Express Corporation' and @BalanceLimit = 0, the following table will be displayed. Vendor Name InvoiceNumber InvoiceDueDate Balance** Federal Express Corporation 963253264 2012-04-17 00:00:00 52.25 Federal Express Corporation 263253268 2012-04-20 00:00:00 59.97 Federal Express Corporation 263253270 2012-04-21 00:00:00 67.92 Federal Express Corporation 263253273 2012-04-21 00:00:00 30.75 **Balance = Invoice Total-CreditTotal-PaymentTotal Code two EXEC statements that call/test the spFindinvoices procedure with the following arguments: a. @NameVendor is 'Federal Express Corporation' and @BalanceLimit is 0 (pass by name) b. @NameVendor is Blue Cross' and @BalanceLimit is 100 (pass by position) 1. Create a stored procedure called spFindinvoices that accepts two parameters- @NameVendor of type varchar(100) and @BalanceLimit of type smallmoney. This procedure displays the VendorName, InvoiceNumber, InvoiceDueDate and Balance of VendorName with the name equal to @NameVendor and where the balance is greater than @BalanceLimit. If you call/test the procedure with @NameVendor = 'Federal Express Corporation' and @BalanceLimit = 0, the following table will be displayed. Vendor Name InvoiceNumber InvoiceDueDate Balance** Federal Express Corporation 963253264 2012-04-17 00:00:00 52.25 Federal Express Corporation 263253268 2012-04-20 00:00:00 59.97 Federal Express Corporation 263253270 2012-04-21 00:00:00 67.92 Federal Express Corporation 263253273 2012-04-21 00:00:00 30.75 **Balance = Invoice Total-CreditTotal-PaymentTotal Code two EXEC statements that call/test the spFindinvoices procedure with the following arguments: a. @NameVendor is 'Federal Express Corporation' and @BalanceLimit is 0 (pass by name) b. @NameVendor is Blue Cross' and @BalanceLimit is 100 (pass by position)

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

Larry Ellison Database Genius Of Oracle

Authors: Craig Peters

1st Edition

0766019748, 978-0766019744

More Books

Students also viewed these Databases questions

Question

What are the determinants of cash cycle ? Explain

Answered: 1 week ago

Question

1. Identify the sources for this conflict.

Answered: 1 week ago

Question

3. How would you address the problems that make up the situation?

Answered: 1 week ago

Question

2. What recommendations will you make to the city council?

Answered: 1 week ago