In this lab, you will be using the Sakila database of movie rentals. You can follow the steps listed here to get the data locally: Sakila sample database - installation.
The database is structured as follows:
- Select all the actors with the first name ‘Scarlett’.
- Select all the actors with the last name ‘Johansson’.
- How many films (movies) are available for rent?
- How many films have been rented?
- What is the shortest and longest rental period?
- What are the shortest and longest movie duration? Name the values
max_duration
andmin_duration
. - What's the average movie duration?
- What's the average movie duration expressed in format (hours, minutes)?
- How many movies longer than 3 hours?
- Get the name and email formatted. Example: Mary SMITH - [email protected].
- What's the length of the longest film title?