Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Deliverable 1 : Database system using Oracle DBMS Study the scenario and complete the questions that follow: Video Reservation Database System A local video rental
Deliverable : Database system using Oracle DBMS
Study the scenario and complete the questions that follow:
Video Reservation Database System
A local video rental service has contacted you to develop a database to electronically facilitate a streamlined reservation and rental process. The database assist in managing member, title, copy of title, and rental information to provide users with an efficient and enjoyable video rental and reservation experience. The database will store detailed member information, including attributes such as identity a unique identifier for each member last name, first name, address, city, phone number, and join date, which records when a member became part of the platform. Each member can reserve multiple titles associated with their identity. At the same time, each title can be reserved by many members, allowing for multiple users to access the same content. The title keeps the catalog of video titles available in the reservation system including identity for each title, title name, description, rating, category, and release date. These attributes help users browse and select right titles for reservation.
A copy of title representing instances of a title and comprising of a unique identifier for each copy and status indicating whether the copy is available for reservation or not is being kept. Each title can have many copies associated with it and thus, ensuring that multiple physical copies of the same title are available for members to reserve.
A rental records transaction when members rent titles. Each rental transaction is associated with a specific copy of a title, ensuring that only one member can rent a particular copy at a time. Specific information such as book date when the rental was initiated account rental date when the rental was added to the member's account and expiry rental date when the rental period expires are kept for the rental
transaction. Each rental transaction is associated with a specific member, indicating the user who rented the copy. The complete Entity Relationship Diagram ERD for the proposed database model comprising of all entities involved and their respective attributes are presented in the Figure as shown below.
RESERVATION
# resDate
TITLE
# titleId title description o rating o category o releaseDate o price
Figure : Entity Relationship Diagram ERD
Implementation of the above database model will facilitate effective reservation and rental management processes.
Source: Obaro Adewale
Questions for Consideration Under Deliverable
Use the above scenario to answer the questions that follows:
Data Definition Language operations
a Using SQL queries, create the five identified tables from the scenario including ALL related Primary and Foreign constraints where appropriate.
Marks
b Store at least five records into each table created in a using INSERT statement.
Marks
Data Selection and Manipulation Operations
a Write a query to change the price of the one of the movies in the TITLE table to using an UPDATE statement.
Marks
b Display the result of the query after performing the update task in a
Marks
c Create a report that contains each customer's history of renting videos using the SELECT statement. Be sure to include the customer's name, title of unavailable movie Rented bookdate of the rental, and duration of rentals calculated as accountrentaldate minus bookdate for the reporting period.
Marks
Views, Index and Function Stored Procedure
a Create a view named "MemberInfo" that contains all member's information.
Marks
b Obtain and display the result of the created view descending order using member identity.
Marks
c Create a view named MOVIEVIEW to show the list of movie titles, the availability of each copy, and its expected return date if unavailable rented out
Marks
d Display all the result of the created view and order the output by the title.
Marks
e Create an index named "titledescription" on the description column in the title table.
Mark
f As a way of giving back to its customers members the management of the rental service has decided to give discount on all movie's title selected UNAVAILABLE due to being rented out by its customers. Create a function named "MovieTitleDiscount" that calculates discount for each price in the TITLE table.
Marks
g Use the created function to calculate the new price. Display the titleid title, current price, and discounted price of the movies.
Marks
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