Introduction
6. The Subscription Table
Simple OVER()
PARTITION BY
Ranking functions
Window Frames
Analytic Functions
PARTITION BY ORDER BY
Order of Evaluation
Finished!

Instruction

Single rentals are not the only option in our store! Movie lovers can get a subscription instead of single rentals.

Exercise

Select all the information from the Subscription table.

Real movie lovers get a subscription instead of single rentals. Each subscription has:

  • an Id,
  • a Length (in days),
  • a StartDate,
  • a Platform (same as the platforms for single rentals),
  • a PaymentDate,
  • a PaymentAmount,
  • a CustomerId.