BETA
Session Ready
Exercise

Advanced grouping

You are interested in knowing how much money is coming in from cities in the USA and Canada. This information can be found in the Total column of the Invoice table.

To solve this problem, you will need to combine multiple statements that you've seen earlier in this chapter, such as aggregate functions, WHERE, GROUP BY, and ORDER BY.

Instructions 1/3
undefined XP
  • 1
  • 2
  • 3
  • Select the billing country, billing city
  • Add a filter to only select rows with billing countries in 'Canada' or the 'USA'.