Create a temporary table for V1 b) Create the appropriate trigger(s) on R that will keep V1 current on inserts and deletes c) Provide sufficient test cases to demonstrate the correctness of your solution.

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter6: Additional Database Objects
Section: Chapter Questions
Problem 1HOA
icon
Related questions
Question

One implementation technique of a view is as a temporary table. That creates the challenge for the system to keep the temporary table up-to-date as modifications are done in the base table(s). Consider this example: create table R (a int, b int, primary key(a,b)); create view V1 as select A+B as S, A-B as D from R where A between 1 and 10;

a) Create a temporary table for V1

b) Create the appropriate trigger(s) on R that will keep V1 current on inserts and deletes

c) Provide sufficient test cases to demonstrate the correctness of your solution.

Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Procedures in SQL
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning