Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the Sakila Database Insert a rental record for Customer Rodney Moeller renting the movie Panic Club from store 1 . Use the lowest inventory

Using the Sakila Database
Insert a rental record for Customer Rodney Moeller renting the movie "Panic Club" from store 1. Use the lowest inventory id that isn't checked out. Set the rental date and last update to '2023-05-05' and use staff_id 1. The rental_id will be autogenerated by the database if you create your insert statement correctly. Put your answer in Q01.sql
Insert a payment for the rental you inserted with the query in question 1 the amount of the payment should be $4.99. The rental id generated by the database should be 16050. The rest of the information should match the rental information from question 1. Put your answer in Q02.sql
Insert a new address with the following information: address -112 N Pole Ln, district - Ontario, city id -388, postal code -38233, phone -2225551221, last update -2023-05-05. The address id should be autogenerated by the database and all other fields should be null. Put your answer in Q03.sql
Insert a new customer with the following information: store id -2, first name - Santa, last name - Claus, email - santa.claus@sakilacustomer.org, address -606, active -1, last update and create date -'2023-05-05'. Put your answer in Q04.sql
Update address 606 to 122 North Pole ln. Don't forget to change the last update to the current date. Put your answer in Q05.sql
Update all outstanding rentals to have a return date of '2023-05-08'. Put your answer in Q06.sql
Delete the payment you inserted in question 2. Put your answer in Q07.sql
Delete the rental you inserted in question 1. Put your answer in Q08.sql
Delete Santa's customer record. Put your answer in Q09.sql
Delete address 606. Put your answer in Q10.sql
Uuu

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_2

Step: 3

blur-text-image_3

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 And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions

Question

Identify cultural barriers to communication.

Answered: 1 week ago