Problem 10: Create a stored procedure thatpresents the sales discount average and standard deviation for bikebrands at or above a specified discount value. The output must showthe brand names in alphabetical order along with the associatedstatistics. The skeleton of the stored procedure is provided below.(Hint: The HAVING clause needs to be used.)
CREATE PROCEDUREGetBrandAverageSalesDiscountAboveValue
@DiscountDECIMAL(4,2)
AS
<REPLACE WITH YOUR SQLCODE>
Then execute the following stored procedure call to get thesales discount average and standard deviation values at or above11% (0.11):
EXECGetBrandAverageSalesDiscountAboveValue @Discount=0.11;
Expected Output:
Problem 10: Create a stored procedure that presents the sales discount average and standard deviation for bike brands at
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Problem 10: Create a stored procedure that presents the sales discount average and standard deviation for bike brands at
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!