Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 1.15 KB

README.md

File metadata and controls

14 lines (10 loc) · 1.15 KB

Sakila-DVD-Rental-database

This project investigates the Sakila DVD Rental database. The Sakila Database holds information about a company that rents movie DVDs.

The queries answers the following question:

  • Create a query that lists each movie, the film category it is classified in, and the number of times it has been rented out.

  • Can you provide a table with the movie titles and divide them into 4 levels (first_quarter, second_quarter, third_quarter, and final_quarter) based on the quartiles (25%, 50%, 75%) of the rental duration for movies across all categories?

  • Provide a table with the family-friendly film category, each of the quartiles, and the corresponding count of movies within each combination of film category for each corresponding rental duration category. The resulting table should have three columns:

    • Category
    • Rental length category
    • Count
  • Write a query that returns the store ID for the store, the year and month and the number of rental orders each store has fulfilled for that month. Your table should include a column for each of the following: year, month, store ID and count of rental orders fulfilled during that month.