Problem 10: Create a stored procedure that presents the sales discount average and standard deviation for bike brands at

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post by answerhappygod »

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:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply