Question: 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

-
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
Given tables below, you will create tables. CUSTOMER RENT CID CNAME CITY CID FID RDATE 1 C1 Smith London 1 C5 F202-OCT-14 2 C2 Jones Paris 2 C5 F304-SEP-14 3 C4 Clark London 3 C5 F5 16-APR-17 4 C5 Adams Athens 4 01 F5 16-APR-17 5 01 F2 02-OCT-14 6 01 F304-SEP-14 7 02 F2 01-APR-14 8 C4 F2 01-JAN-14 FILM FID FNAME 1 F2 The Others 2 F3 Senseless 3 F4 Dragon Heart 4 F5007 5 F7 Sweetheart PRICE TYPE 1.44 HORROR 5.99 COMEDY 6 DRAMA 5 ACTION 5 COMEDY 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
