Assignment 4 - Joining and Advanced Multiple Table Queries
Assignment 4 - Joining and Advanced Multiple Table Queries
Based on the readings, lecture slides, and materials in the Module 3, answer the below
questions and submit via blackboard in a .docx or .pdf format.
To perform this assignment, you will need to use the “Sakila” database that is pre-installed, just
like we did in Module 1. Below is an attachment to the Sakila ER Diagram which is also within this
module.
Within this database, you will be using tables throughout entire model, and pick the appropriate tables
for each question for this assignment. Based on assignment readings and slides, perform each of the
following queries from the fil table.
Guided Queries: For the 5 following questions, your submission will be the query that you would write
that would return the needed result
1. Write a query that returns the Staff ID for the staff member who is involved in the most rentals.
2. Write a query that returns all the distinct list of film category names.
3. Write a query that counts the rentals of films, by category, and returns the category name and
count of rentals.
4. Write a query that returns the First_Name and Last_Name of each actor, and the count of the
number of times their films have been rented.
5. Write a query that returns the First_Name and Last_Name of the actor, and the count of the
number of time their film has been rented, of the actor with the most rentals
Query Results: For the 5 following questions, your submission will be the output of the queries.