Professional Documents
Culture Documents
Quiz 3&4
Quiz 3&4
Quiz 3&4
3. Create a stored procedure to take “10%” Rate as input value for the “Discount_Promo” in the
Product Table, provided that the StockOnHand is more than 90% of the MaxStock.
Note: Include initialization of Discount_Promo field to Zero. See Exhibit “A” for sample output
4. Create and run another Stored Procedure/s to supply values for Disc_Amount, Percent_Disc and
Net_Amount whose values are NULL in SalesOrderHeader Table.
Note: Since CustID of these null values does not exist in the Customer Table, use Product Table
instead to recalculate the values.
All “null” values should be transformed
as shown in Exhibit “B” ---------------->