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

  1. Create three tables

    1. Customer

    2. Rent

    3. Film

  2. Define appropriate data type and data size

  3. Define column constraints

  1. Specify Integrity/Domain/Primary Key/Referential Integrity constraints

    1. Primary key

    2. Foreign key

CONSTRAINT rent_fk_c FOREIGN KEY cid REFERENCES customer ON DELETE CASCADE;

  1. The price of a film ranges from 0.50 to 19.99

  2. A film can only have the type of Action, Horror, Comedy, Drama, and Education

For the submission

  1. Include your table creation SQL statements - You can copy and paste your code here.

  2. Include the screenshots - Take a screenshot of your tables in your DB

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!