Question
The following questions will help you to practice writing SQL statements. The questions are based on the sakila database schema on MySQL Workbench. 1. Write
The following questions will help you to practice writing SQL statements. The questions are based on the "sakila" database schema on MySQL Workbench.
1. Write the sql statement that will provide you a list of active customers by full address. Sorted by country, city and last name. (Without using the wildcard (*) for the fields.) How many active households do we have?
2. Write the sql statement that will provide you a list of rental dates looking from today, back into history, and the count of rented films per day. (Without using the wildcard (*) for the fields.) How many days did we have movies rented?
3. Write the sql statement that will provide you a list all films that were rented. (Without using the wildcard (*) for the fields.) How many titles did we rent since the beginning?
4. Write the sql statement that will provide you the title of the movie that was most rented in June, 2005. How many times was it rented?
5. Write the sql statement that will provide you with the highest revenue day we had in the past. How much did we make? What was the highest revenue date?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started