Ex.6 Stored Procedures Functions
Ex.6 Stored Procedures Functions
Best Practices: use implicit and explicit cursor, DIsplay appropriate message if data not available,
use appropriate cursor attributes
For total amount > 2000 and total amount < 5000: Discount=5%
For total amount > 5000 and total amount < 10000: Discount=10%
Calculate the total amount (after the discount) and update the same in
************************************************************
************************************************************
------------------------------------------------------
Total = 11 2500
------------------------------------------------------
-------------------------- ----
-------------------------- ----
*************************************************************
3. Write a stored function to display the customer name who ordered highest among the total
number of pizzas for a given pizza type.
4. Implement Question (2) using a stored function to return the amount to be paid and update the
same, for the given order number.