The following questions will help you to practice writing SQL statements. The qu
ID: 3913590 • Letter: T
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 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.
Explanation / Answer
Hence, these are the queries one can try out without knowing the database. There is more understanding to the queries once you list out the database.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.