Using the Production.ProductCategory and Production.ProductSubcategory tables in the [AdventureWorks2012] database, please help me to make a stored
Fantastic news! We've Found the answer you've been seeking!
Question:
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'.
- Show the procedure definition.
- Execute sp_catSub with the subcategory ID equal to 10.
With explanation and output please so I can compare my answers.
Related Book For
Posted Date: