Question: a) Convert the following for-cursor into: open, fetch, close one: DECLARE Cursor ci is select table_name from user_tables: BEGIN FOR tables IN c1 LOOP DBMS_OUT.PUT_LINE

 a) Convert the following for-cursor into: open, fetch, close one: DECLARE
Cursor ci is select table_name from user_tables: BEGIN FOR tables IN c1

a) Convert the following for-cursor into: open, fetch, close one: DECLARE Cursor ci 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 Film Film Actor SMALLINT SMALLINT PF actor_id PF timid P * Vid Language Planguage id SMALLINT name CHAR (20) title description release year Flanguage_id F original language_id rental duration rental rate SMALLINT VARCHAR2 (255) VARCHAR2 (255) SMALLINT SMALLINT SMALLINT SMALLINT NUMBER (42) SMALLINT NUMBER (5.2) VARCHAR2 (6) VARCHAR2 (255) TIMESTAMP length replacement cost rating special features last update Film Category PF im id SMALLINT SPF category.id SMALLINT Actor P. actor id SMALLINT first name VARCHAR2 (45) last name VARCHAR2 (45) Fnationality CHAR (2) Country P countryd SMALLINT U short code CHAR (2) name VARCHAR2 (25) Category PCategory ld SMALLINT "name VARCHAR2 (25) parent.cat SMALLINT

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!