Answered step by step
Verified Expert Solution
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
Database Name : Create the database with the name LabYourName replace
YourName with your actual name
Define the tables: You need to create three tables: Customer, Movie, and Rental.
Choose the right data types: Ensure that you select appropriate data types for
each column.
Set NULL or NOT NULL constraints: Determine which columns can be null and
which cannot.
Establish relationships: Set up foreign key relationships between the tables.
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started