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
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