Answered step by step
Verified Expert Solution
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 Assignment 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 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 actorid and have a first name and a last name
b An address is identified by the addressid 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. cityid is the primary key.
d Customers have a customerid firstname, lastname, 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 filmid 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 R or NC
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 filmid and actorid
g An inventory is a film that exists at a store for borrowing. For each inventory, we keep track of the filmid and the storeid where the inventory is available. Inventoryid is the primary key.
h A rental is identified by a rentalid 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,
the rental amount paid, and the date of the lastupdate to the rental. A customer can make
several rentals and a staff may be involved with several rentals.
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