Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
5. Table single_rental
Simple OVER()
PARTITION BY
Ranking functions
Window frame
Analytic functions
ORDER BY PARTITION BY
Order of evaluation
Summary

Instruction

Ok, but can we actually purchase from the store?

Exercise

Select all the information from the single_rental table.

Now, let's get down to business. The first possibility in our store is to rent a single movie for a certain period of time. Each rental has an id, rental_date (when the rent starts), rental_period (in days), the platform (desktop, mobile or tablet), customer_id, movie_id, payment_date (you can pay a few day after you rent) and the payment_amount, or the price.