Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

4. I can tell when team members dont mean what they say.

Answered: 1 week ago

Question

2. How were various roles filled?

Answered: 1 week ago