You are on page 1of 1

CSC371: Database Systems - FALL 2019

Lab-6 Task: Grouping and Aggregation

Write SQL queries for each of the following needs over Sakila database.

1) Which of the actors has appeared in the most films?

2) What is the average duration of films in each category?

3) List the first name of the actors and also that how many actors have that first name?

4) Find out the number of customers who never rented BREAKING HOME.

5) List accumulative replacement cost of the movies that were never rented.

6) For each of the categories, find out the total number of customers who have rented movies
belonging to it.

You might also like