Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using the film database you have, answer the following queries in your schema then write them down in this paper. a) Convert the following for-cursor
Using the film database you have, answer the following queries in your schema then write them down in this paper.
a) Convert the following for-cursor into: open, fetch, close one:
DECLARE
Cursor c1 is select table_name from user_tables;
BEGIN
FOR tables IN c1 LOOP
DBMS_OUT.PUT_LINE(tables.table_name);
END LOOP;
END;
b) Create a trigger so that when user tries to update category table, new value won't take effect and old data will remain in the database.
c) Create a function to return if a particular film has more than 10 actors in it or not.
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