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,

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 3RP
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
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning