sogunmola / lab-sql-7

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logo_ironhack_blue 7

Lab | SQL Queries 7

In this lab, you will be using the Sakila database of movie rentals. You have been using this database for a couple labs already, but if you need to get the data again, refer to the official installation link.

The database is structured as follows: DB schema

Instructions

  1. Which last names are not repeated?
  2. Which last names appear more than once?
  3. Rentals by employee.
  4. Films by year.
  5. Films by rating.
  6. Mean length by rating.
  7. Which kind of movies (rating) have a mean duration of more than two hours?
  8. List movies and add information of average duration for their rating and original language.
  9. Which rentals are longer than expected?

About