Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Q1. Given the database described by the following tables:
STORE (STNO, Address, Surface)
PRODUCT (PNO, DesProd, color, Weight, Qty_Stk, Qty_Min, 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)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions

Question

What are the vertex and range of y = |x + 3| + 2

Answered: 1 week ago

Question

3. List ways to manage relationship dynamics

Answered: 1 week ago