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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started