Question: Use Northwind database and base your stored procedure off the columns found in the Customer table. Write a stored procedure named, CustRegion, that accepts a

Use Northwind database and base your stored procedure off the columns found in the Customer table.

Write a stored procedure named, CustRegion, that accepts a Region as a parameter. The stored proc is to return only the CustomerID, CompanyName, and the Region. Write it so that it can return those rows where the region is a NULL value as well as allowing the user to submit via the parameter a region name such as BC, SP, OR, DF, Isle of Wight, etc. Note: you must test for a NULL value using the IS NULL statement and can't code a Where clause using an '= NULL' as that is not correct and will result in no rows being returned.

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!