Section 1. Chapter 31
single
Challenge: America Regions Filter
Swipe to show menu
Task
Swipe to start coding
Write an SQL query to retrieve the name of the countries that are from either 'Central America' or 'North America'.
Note
Pay attention to the fact that the names of the regions begin with a capital letter and not a lowercase one, which is very important.
- Use the
SELECTstatement to extract thenamecolumn from thecountrytable. - Use the
WHEREclause to filter the results. - Combine the region conditions using the
ORkeyword. - Do not include any extra output or print statements in your query.
Solution
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 31
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat