Question: Q 1 . Given the database described by the following tables: STORE ( STNO , Address, Surface ) PRODUCT ( PNO , DesStod, color, Weight,

Q1. Given the database described by the following tables:
STORE (STNO, Address, Surface)
PRODUCT (PNO, DesStod, color, Weight, Qtv, Stk, QtvacoMin, Price, STNO#)
Write a PL/SQL block that uses an implicit cursor to check that Store 10 exists and then inserts the new product (120, 'TABLE', 'WHITE', 20,10,5,500,10)
Q2. Given the following table
EMP (Empno.Ename, ..., SAL, Comm, Deptno#)
Develop a trigger that records any change of salaries done during the 5 working days (assumed as days 1,2,3,4 and 5) into the table:
AUDIT_EMP_SAL(Uname, ActionDate, OldSal. NewSal. DayNo)
Please I want clear answer for each question " one clear code for each ".
 Q1. Given the database described by the following tables: STORE (STNO,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!