Using the DBMS 130 Course Project ERD and Table Details spreadsheet, develop an APEX script to CREATE the 6 tables and all the constraints (PK, FK, NOT NULL, etc.). Add these two constraints to the FLIX_MOVIES table

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

Using the DBMS 130 Course Project ERD and Table Details spreadsheet, develop an
APEX script to CREATE the 6 tables and all the constraints (PK, FK, NOT NULL, etc.).
Add these two constraints to the FLIX_MOVIES table
1. Movie Rating can only have these values:
a. G
b. PG
c. PG13 or PG-13
d. R
2. Movie Category can only have these values
a. DRAMA
b. COMEDY
c. ACTION
d. SCIFI
e. DOCUMENTARY

FLIX_CUSTOMERS
DBMS 130: Course Project ERD
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
|++
||+
FLIX RENTAL_HISTORY
PK Rental History_ID
FK Customer_ID
FK
Media_ID
FK
Rental_Date
Return_Date
FLIX_STAR_BILLING
PK Star Billing ID
FK Actor_ID
Title_ID
Comments
HPK
FK
艹 PK
FLIX_MEDIA
Media_ID
Title_ID
Format
FLIX_MOVIES
Title ID
Title
Description
Rating
Category
Release Date
|+
Transcribed Image Text:FLIX_CUSTOMERS DBMS 130: Course Project ERD 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 |++ ||+ FLIX RENTAL_HISTORY PK Rental History_ID FK Customer_ID FK Media_ID FK Rental_Date Return_Date FLIX_STAR_BILLING PK Star Billing ID FK Actor_ID Title_ID Comments HPK FK 艹 PK FLIX_MEDIA Media_ID Title_ID Format FLIX_MOVIES Title ID Title Description Rating Category Release Date |+
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
Type
INTEGER
INTEGER
INTEGER
DATE
DATE
Type
INTEGER
INTEGER
VARCHAR2
Type
INTEGER
VARCHAR2
VARCHAR2
VARCHAR2
DATE
Type
INTEGER
INTEGER
INTEGER
VARCHAR2
Type
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
ZZZZZZZZZ
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
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 Type INTEGER INTEGER INTEGER DATE DATE Type INTEGER INTEGER VARCHAR2 Type INTEGER VARCHAR2 VARCHAR2 VARCHAR2 DATE Type INTEGER INTEGER INTEGER VARCHAR2 Type 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 ZZZZZZZZZ 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
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Elements of Tables
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