Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the Production.ProductCategory and Production.ProductSubcategory tables in the [AdventureWorks2012] database, please help me to make a stored procedure sp_CatSub providing the category ID, category name,

Using theProduction.ProductCategoryandProduction.ProductSubcategorytables in the [AdventureWorks2012] database, please help me to make a stored proceduresp_CatSubproviding the category ID, category name, subcategory ID, and subcategory name of the products whose subcategory ID to be entered by the user. Make sure you create stored procedures in your own database. If you want to alter the procedure, you can use 'alter procedure'.

  1. Show the procedure definition.
  2. Execute sp_catSub with the subcategory ID equal to 10.

With explanation and output please so I can compare my answers.

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

Using Excel & Access for Accounting 2010

Authors: Glenn Owen

3rd edition

1111532672, 978-1111532673

More Books

Students also viewed these Databases questions

Question

State the uses of job description.

Answered: 1 week ago

Question

Explain in detail the different methods of performance appraisal .

Answered: 1 week ago

Question

How is grouping used with the cash budget?

Answered: 1 week ago

Question

Explain the process for changing column width or row height

Answered: 1 week ago

Question

13. What are two mechanisms by which CCK increases satiety?

Answered: 1 week ago