Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Business Use Case You have been hired to design a database for a movie rental system. The system needs to keep track of its customers,

Business Use Case
You have been hired to design a database for a movie rental system. The system needs to
keep track of its customers, the movies available for rent, and the rental transactions.
Your task is to create a minimum of three tables based on this use case. The focus of this
lab is to ensure the correct data types are used, columns are properly defined as nullable
or not nullable, foreign keys are set up correctly, and each table should have at least two
lines of dummy data.
Instructions
1. Database Name : Create the database with the name Lab3_YourName (replace
YourName with your actual name).
2. Define the tables: You need to create three tables: Customer, Movie, and Rental.
3. Choose the right data types: Ensure that you select appropriate data types for
each column.
4. Set NULL or NOT NULL constraints: Determine which columns can be null and
which cannot.
5. Establish relationships: Set up foreign key relationships between the tables.
6. Insert dummy data: Populate each table with at least two rows of data.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

1st Edition

1597496251, 978-1597496254

Students also viewed these Databases questions

Question

Write formal proposal requests.

Answered: 1 week ago

Question

Write an effective news release.

Answered: 1 week ago

Question

Identify the different types of proposals.

Answered: 1 week ago