Question: Lab04 Given tables below, you will create tables. CUSTOMER RENT FILM Create three tables Customer Rent Film Define appropriate data type and data size Define
Lab04
Given tables below, you will create tables.
| CUSTOMER | RENT | FILM |
-
Create three tables
-
Customer
-
Rent
-
Film
-
-
Define appropriate data type and data size
-
Define column constraints
-
Specify Integrity/Domain/Primary Key/Referential Integrity constraints
-
Primary key
-
Foreign key
-
CONSTRAINT rent_fk_c FOREIGN KEY cid REFERENCES customer ON DELETE CASCADE;
-
The price of a film ranges from 0.50 to 19.99
-
A film can only have the type of Action, Horror, Comedy, Drama, and Education
For the submission
-
Include your table creation SQL statements - You can copy and paste your code here.
-
Include the screenshots - Take a screenshot of your tables in your DB
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
