Question
I need an Oracle SQL trigger that creates an audit when data is added to BB_PRODUCT and adds it to the BB_PRODUCTCHG_LOG table. BB_PRODUCTCHG_LOG table
I need an Oracle SQL trigger that creates an audit when data is added to BB_PRODUCT and adds it to the BB_PRODUCTCHG_LOG table.
BB_PRODUCTCHG_LOG table structure:
CREATE TABLE BB_PRODUCTCHG_LOG
(
USER_ID VARCHAR2 (50),
CHG_DATE DATE,
PRODUCTNAME_OLD VARCHAR2 (25),
PRODUCTNAME_NEW VARCHAR2 (25),
PRICE_OLD NUMBER (5, 2),
PRICE_NEW NUMBER (5, 2),
SALESTART_OLD DATE,
SALESTART_NEW DATE,
SALEEND_OLD DATE,
SALEEND_NEW DATE,
SALEPRICE_OLD NUMBER (5, 2),
SALEPRICE_NEW NUMBER (5, 2)
);
The structure for the BB_PRODUCT table is the screenshot, thanks in advance!
CoursHeroTranscribedTextBB_PRODUCT IDPRODUCT PRODUCTNAME DESCRIPTION PRODUCTIMAGE PRICE SALESTART SALEEND SALEPRICE ACTIVE FEATURED FEATURESTART FEATUREEND TYPE IDDEPARTMENT STOCK ORDERED REORDER
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started