Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task Create a new database that will be used to keep track of information for a film rental store. The database will keep track of

Task
Create a new database that will be used to keep track of information for a film rental store. The database will keep track of films, film actors, stores, customers, addresses, city, film inventory, film rentals, and staff information. An Excel spreadsheet Assignment1 Data . xlsx containing the data to be stored at creation (initial load) is provided. Import each sheet of the spreadsheet into a new relation in your database. Please review the data first and ensure that you understand what each column represents before you start creating your database.
There are 10 tables: Actor, Address, City, Country, Film, FilmActor, Inventory, Rental, Staff, and Store. Each table must have a primary key, relationships between tables must be defined, and relationships must enforce referential integrity. The following guidelines are given about the tables.
a. Actors are identified by the actor_id and have a first name and a last name
b. An address is identified by the address_id. An address has a street address, district, postal code, phone, and city where it is located. Several addresses can be in the same city. The address table stores the addresses of all Customers, Stores, Staffs.
c. Each city is located in a country and has a city name. city_id is the primary key.
d. Customers have a customer_id, first_name, last_name, email address, an indicator for whether they are active or not, and a date they were added to the system. Customers are registered at a particular store and many customers can be registered at one store.
e. For each film, we keep track of the film_id, title, description, release year, rental duration (number of days for which it can be rented), the rental rate, the length of the film (in minutes), the cost of replacing it if lost, and a rating. The rating can only be one of G, PG, PG-13, R, or NC-17.
f. A film consists of several actors and actors can be part of many films. Film actors show a list of films and the actors in the film. The primary key for this table is composite, consisting of film_id and actor_id.
g. An inventory is a film that exists at a store for borrowing. For each inventory, we keep track of the film_id and the store_id where the inventory is available. Inventory_id is the primary key.
h. A rental is identified by a rental_id and we keep track of the rental date, the inventory borrowed, the customer who made the rental, the return date, the staff who last updated the rental record,
1
the rental amount paid, and the date of the last_update to the rental. A customer can make
several rentals and a staff may be involved with several rentals.
image text in transcribed

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

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions

Question

1. Communicating courses and programs to employees.

Answered: 1 week ago

Question

6. Testing equipment that will be used in instruction.

Answered: 1 week ago