Question: solvefor database course using live oracle sql 3 ) Write an anonymous block to test the above function. Format the output like this assuming that
solvefor database course using live oracle sql Write an anonymous block to test the above function. Format the output like this assuming that the project number used is :
point
The location of this project is Bellaire
For the following questions, create the following PRODUCT table and make sure to hand in the CREATE TABLE command for this table: point
Code: VARCHAR
Description: VARCHAR
Price: DECIMAL
Discount: NUMBER
SalePrice: DECIMAL
Designate Code as the primary key.
Write a statement level trigger called trg prod that when the Price and Discount of a product are inserted, the trigger calculates the SalePrice as the Price minus the product of Price and Discount. points
Test it like this:
INSERT INTO PRODUCTCodeDescription, Price,Discount VALUES ABDQ'FLAT SCREEN TV
Check that the trigger set the SalePrice as indicated above which is going to be
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
