Q1 Create a view named v_Title_Unavailable. The view should show the movie titles and media_id of the media not returned yet. The view should not allow any DML operations Q2 Create a SYNONYM for v_Title_Unavailable named vTU. Q3 Write SQL to query the view using the synonym.

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
icon
Concept explainers
Question

Q1
Create a view named v_Title_Unavailable.
The view should show the movie titles and media_id of the media not returned
yet.
The view should not allow any DML operations
Q2
Create a SYNONYM for v_Title_Unavailable named vTU.
Q3
Write SQL to query the view using the synonym.

DBMS 130: Course Project ERD
FLIX_CUSTOMERS
PK Customer ID
Last_Name
First Name
Home Phone
Cell Phone
Email
Street1
Street2
City
State Province
Postal Code
FLIX_ACTORS
PK Actor ID
Stage_Name
Last Name
First Name
Birth Date
|+
HH
FLIX_RENTAL_HISTORY
PK Rental History_ID
FK Customer_ID
FK Media_ID
Rental Date
Return_Date
FLIX_STAR_BILLING
PK Star Billing ID
OFK Actor_ID
FK Title_ID
Comments
FLIX_MEDIA
HPK Media_ID
FK Title_ID
Format
FLIX_MOVIES
HPK Title_ID
Title
Description
Rating
Category
Release Date
HH
Transcribed Image Text:DBMS 130: Course Project ERD FLIX_CUSTOMERS PK Customer ID Last_Name First Name Home Phone Cell Phone Email Street1 Street2 City State Province Postal Code FLIX_ACTORS PK Actor ID Stage_Name Last Name First Name Birth Date |+ HH FLIX_RENTAL_HISTORY PK Rental History_ID FK Customer_ID FK Media_ID Rental Date Return_Date FLIX_STAR_BILLING PK Star Billing ID OFK Actor_ID FK Title_ID Comments FLIX_MEDIA HPK Media_ID FK Title_ID Format FLIX_MOVIES HPK Title_ID Title Description Rating Category Release Date HH
DBMS 130: Course Project DB
FLIX CUSTOMERS
Customer ID
Last Name
First Name
Home Phone
Cell Phone
Email
Street1
Street2
City
State Province
Postal Code
FLIX RENTAL HISTORY
Rental History_ID
Customer ID
Media ID
Rental Date
Return Date
FLIX MEDIA
Media ID
Title ID
Format
FLIX ACTORS
Actor ID
Stage_Name
Last Name
First Name
Birth Date
FLIX STAR BILLINGS
Star Billing ID
Actor ID
Title ID
Comments
FLIX MOVIES
Title ID
Title
Description
Rating
Category
Release Date
Key
PK
Key
PK
FK
FK
Key
PK
FK
Key
PK
Key
PK
FK
FK
Key
PK
Type
INTEGER
VARCHAR2
VARCHAR2
VARCHAR2
VARCHAR2
VARCHAR2
VARCHAR2
VARCHAR2
VARCHAR2
CHAR
VARCHAR2
Туре
INTEGER
INTEGER
INTEGER
DATE
DATE
Туре
INTEGER
INTEGER
VARCHAR2
Type
INTEGER
VARCHAR2
VARCHAR2
VARCHAR2
DATE
Туре
INTEGER
INTEGER
INTEGER
VARCHAR2
Туре
INTEGER
VARCHAR2
VARCHAR2
VARCHAR2
VARCHAR2
DATE
Max Length
250
250
50
50
50
250
250
250
2
50
Max Length
Max_Length
10
Max Length
250
250
250
Max Length
400
Max Length
250
4000
10
250
Domain
Integer
String
String
String
String
String
String
String
String
Valid St/Prov
String
Integer
Integer
Integer
Valid Date
Valid Date
Integer
Integer
String
Integer
String
String
String
Valid Date
Integer
Integer
Integer
String
Integer
String
String
G
PG
PG13
R
DRAMA
COMEDY
ACTION
CHILD
SCIFI
DOCUMENTARY
Unique
Y
N
N
N
N
N
N
N
N
N
N
Unique
Y
N
N
N
N
Unique
Y
N
N
Unique
Y
N
N
N
N
Unique
Y
N
N
N
Unique
Y
N
N
N
N
N
Nullable
N
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Nullable
N
Y
Y
Y
Y
Nullable
N
Y
Y
Nullable
N
Y
Y
Y
Y
Nullable
N
Y
Y
Y
Nullable
N
Y
Y
Y
Y
Y
Transcribed Image Text:DBMS 130: Course Project DB FLIX CUSTOMERS Customer ID Last Name First Name Home Phone Cell Phone Email Street1 Street2 City State Province Postal Code FLIX RENTAL HISTORY Rental History_ID Customer ID Media ID Rental Date Return Date FLIX MEDIA Media ID Title ID Format FLIX ACTORS Actor ID Stage_Name Last Name First Name Birth Date FLIX STAR BILLINGS Star Billing ID Actor ID Title ID Comments FLIX MOVIES Title ID Title Description Rating Category Release Date Key PK Key PK FK FK Key PK FK Key PK Key PK FK FK Key PK Type INTEGER VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 CHAR VARCHAR2 Туре INTEGER INTEGER INTEGER DATE DATE Туре INTEGER INTEGER VARCHAR2 Type INTEGER VARCHAR2 VARCHAR2 VARCHAR2 DATE Туре INTEGER INTEGER INTEGER VARCHAR2 Туре INTEGER VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 DATE Max Length 250 250 50 50 50 250 250 250 2 50 Max Length Max_Length 10 Max Length 250 250 250 Max Length 400 Max Length 250 4000 10 250 Domain Integer String String String String String String String String Valid St/Prov String Integer Integer Integer Valid Date Valid Date Integer Integer String Integer String String String Valid Date Integer Integer Integer String Integer String String G PG PG13 R DRAMA COMEDY ACTION CHILD SCIFI DOCUMENTARY Unique Y N N N N N N N N N N Unique Y N N N N Unique Y N N Unique Y N N N N Unique Y N N N Unique Y N N N N N Nullable N Y Y Y Y Y Y Y Y Y Y Nullable N Y Y Y Y Nullable N Y Y Nullable N Y Y Y Y Nullable N Y Y Y Nullable N Y Y Y Y Y
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Query Syntax
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