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
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
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
|+](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Ff5687225-f4ce-4b08-8a49-c9e8248dc732%2F27604ff1-cd2e-45a7-9a76-2597d0d14918%2Fcnuk9z_processed.png&w=3840&q=75)
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Ff5687225-f4ce-4b08-8a49-c9e8248dc732%2F27604ff1-cd2e-45a7-9a76-2597d0d14918%2Fghak9e_processed.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
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)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
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)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education