Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions

Question

How would you assess the value of an approach like this?

Answered: 1 week ago