1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Oracle SQL

Exercise

Combining WHERE and HAVING

You are interested in knowing which countries are bringing in the most revenue for eSymphony. More specifically, you want to list the countries with a total invoice amount of over $100. You have been informed that the data registered in Paris might be incorrect, so you decide to exclude Parisian invoices from your analysis.

To answer this question, you will need to use both WHERE and HAVING to filter the data.

Instructions 1/3

undefined XP
    1
    2
    3
  • Select the BillingCountry and the total invoice amount for each country.
  • Group the results by country.
  • Restrict to groups with a Total invoice amount of more than 100.