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
icon
Related questions
Question
Film Actor
Language
Film
SMALLINT
VARCHARZ (255)
VARCHAR2 (2
SMALLINT
SMALLINT
PF actor d SMALLINT
PF fim id
.im_id
languaged SMALLINT
CHAR (20)
SMALLINT
name
description
release year
anguage_id
original_language SMALLINT
renta duration
*rentaate
engh
*replacement_cost
rating
pecial features
ustpdate
SMALLINT
NUMBER (42)
SMALLINT
Fam Category
SMALLINT
SMALLINT
NUMBER (52)
VARCHARZ 6)
VARCHAR2 (255)
TIMESTAMP
PF Sm id
KA category
Actor
actor id
first name
SMALLINT
VARCHARZ (45)
last rame VARCHAR (4)
nationality
CHAR (2)
Category
category SMALLINT
VARCHAR2 (2)
Country
country d SMALLINT
U short_code CHAR (2)
VARCHARU (2)
name
P
parent c
SMALLINT
name
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;
Transcribed Image Text:Film Actor Language Film SMALLINT VARCHARZ (255) VARCHAR2 (2 SMALLINT SMALLINT PF actor d SMALLINT PF fim id .im_id languaged SMALLINT CHAR (20) SMALLINT name description release year anguage_id original_language SMALLINT renta duration *rentaate engh *replacement_cost rating pecial features ustpdate SMALLINT NUMBER (42) SMALLINT Fam Category SMALLINT SMALLINT NUMBER (52) VARCHARZ 6) VARCHAR2 (255) TIMESTAMP PF Sm id KA category Actor actor id first name SMALLINT VARCHARZ (45) last rame VARCHAR (4) nationality CHAR (2) Category category SMALLINT VARCHAR2 (2) Country country d SMALLINT U short_code CHAR (2) VARCHARU (2) name P parent c SMALLINT name 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;
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Time complexity
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
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education