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 store's cities and countries. Where are they located (city and country)? Show your results.
2. Write the sql statement that will provide you the total revenue for those stores. Show your results including store number, city and country.
3. Write the sql statement that will provide you the total revenue per year for those stores. Show your results including store number, city and country.
4. Write the sql statement that will provide you the average revenue per month for those stores. Show your results including store number, city and country.
5. Write the sql statement that will provide you the total revenue per month per year for those stores. Show your results including store number, city and country.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
