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 and @BalanceLimit of type smallmoney. In this procedure, write a

1. Create a stored procedure called spFindInvoices that accepts two parameters- @NameVendor of type varchar and @BalanceLimit of type smallmoney. In this procedure, write a query that shows the following table when @NameVendor is Federal Express Corporation and @BalanceLimit is 0:

VendorName 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 = InvoiceTotal-CreditTotal-PaymentTotal

Code two EXEC statements that call/test the spFindInvoices procedure with the following arguments:

a. @NameVendor = Federal Express Corporation and @BalanceLimit i= 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

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions

Question

What are the benefits of partnering?

Answered: 1 week ago

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago