Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!