Fam Acter Fam Language aor SMALLINT SMALLINT anguag SMALLINT CHAR 20) im SMALLINT VARCHARZ (2) VARCHAR2 (2 SMALLINT e name desrton eleae ye dentun SMALLINT INTS vtendeme rental uration entaate ngh placementcost ating pecial features VARCHAR a ustedae SMALLINT NUMBER 42) SALLINT Fm Catgory NUMBER (S) SMALLINT Actor VARCHAR2 category SMALLINT ac fame VARCHARZ (4) laame VARCHAR (4 nationality CR 2) SMALLINT TIMESTAMP Category caegory SMALLINT VARCHAR SMALLINT Country ame county SMALLINT short code CHAR 2) VARCHARU parent Using the film database you have, answer the following queries in your schema then write them down in this paper. Question One: Select the total rental_rate for films grouped by their categories. Order the result (a from largest to smallest. Select all actors who acted together with JOE in any film. Use inner query. (b Create a view, which has category names and number of films each category has. (c Question two: Convert the following for-cursor into: open, fetch, close one: (a DECLARE Cursor cl is select table_name from user tables; BEGIN FOR tables IN cl LOOP DBMS_OUT.PUT_LINE(tables.table_name); END LOOP; END;
Fam Acter Fam Language aor SMALLINT SMALLINT anguag SMALLINT CHAR 20) im SMALLINT VARCHARZ (2) VARCHAR2 (2 SMALLINT e name desrton eleae ye dentun SMALLINT INTS vtendeme rental uration entaate ngh placementcost ating pecial features VARCHAR a ustedae SMALLINT NUMBER 42) SALLINT Fm Catgory NUMBER (S) SMALLINT Actor VARCHAR2 category SMALLINT ac fame VARCHARZ (4) laame VARCHAR (4 nationality CR 2) SMALLINT TIMESTAMP Category caegory SMALLINT VARCHAR SMALLINT Country ame county SMALLINT short code CHAR 2) VARCHARU parent Using the film database you have, answer the following queries in your schema then write them down in this paper. Question One: Select the total rental_rate for films grouped by their categories. Order the result (a from largest to smallest. Select all actors who acted together with JOE in any film. Use inner query. (b Create a view, which has category names and number of films each category has. (c Question two: Convert the following for-cursor into: open, fetch, close one: (a DECLARE Cursor cl is select table_name from user tables; BEGIN FOR tables IN cl LOOP DBMS_OUT.PUT_LINE(tables.table_name); END LOOP; END;
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
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.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education