Fam Actor PF ador d SMALLINT mjd SMALLINT ador d first name name nationality Actor SMALLINT VARCHAR2 (45) VARCHAR2(45) CHR (2) Country te description release year language d original language rental, duration rental a replacement cost rating special features last update Fam SMALLINT VARCHAR2 (255) VARCHAR2 (255) SMALLINT SMALLINT SMALLINT SMALLINT NUMBER (42) SMALLINT NUMBER (52) VARCHAR2 (6) VARCHAR2 (255) TIMESTAMP language, d name Smjd Fan C category,

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

 

 

PF actor id
PF fim id
Film Actor
actor id
first name
last name
Fnationality
P
SMALLINT
SMALLINT
SMALLINT
country d
short code
name
Actor
SMALLINT
VARCHAR2 (45)
VARCHAR2 (45)
CHAR (2)
Country
SMALLINT
CHAR (2)
VARCHARZ (25)
P>M
fim id
te
description
release year
language d
original language
rental, duration
rental rate
length
replacement cost
rating
special features
last update
Film
SMALLINT
VARCHAR2 (255)
VARCHAR2 (255)
SMALLINT
SMALLINT
SMALLINT
SMALLINT
NUMBER (42)
SMALLINT
NUMBER (52)
VARCHAR2 (6)
VARCHAR2 (255)
TIMESTAMP
language id
name
Language
PF sim id
Epp category d
Film Category
SMALLINT
SMALLINT
P category
SMALLINT
CHAR (20)
Category
name
parent cat
SMALLINT
VARCHAR2 (25)
SMALLINT
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 c1 LOOP
DBMS_OUT.PUT_LINE (tables.table_name);
END LOOP;
END;
Transcribed Image Text:PF actor id PF fim id Film Actor actor id first name last name Fnationality P SMALLINT SMALLINT SMALLINT country d short code name Actor SMALLINT VARCHAR2 (45) VARCHAR2 (45) CHAR (2) Country SMALLINT CHAR (2) VARCHARZ (25) P>M fim id te description release year language d original language rental, duration rental rate length replacement cost rating special features last update Film SMALLINT VARCHAR2 (255) VARCHAR2 (255) SMALLINT SMALLINT SMALLINT SMALLINT NUMBER (42) SMALLINT NUMBER (52) VARCHAR2 (6) VARCHAR2 (255) TIMESTAMP language id name Language PF sim id Epp category d Film Category SMALLINT SMALLINT P category SMALLINT CHAR (20) Category name parent cat SMALLINT VARCHAR2 (25) SMALLINT 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 c1 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
Class
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
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