Skip to content
Joining Data with SQL
Here you can access every table used in the course. To access each table, you will need to specify the world
schema in your queries (e.g., world.countries
for the countries
table, and world.languages
for the languages
table).
Take Notes
Add notes about the concepts you've learned and SQL cells with queries you want to keep.
Add your notes here
Unknown integration
DataFrameavailable as
world_info
variable
-- Add your own queries here
SELECT *
FROM world.languages
LIMIT 5
Explore Datasets
Use the tables to explore the data and practice your skills!
- Combine the
states
andcountries
tables into one table.- The final result should have a
name
column, acontinent
column, and anindep_year
column. Use thelocal_name
column from thecountries
table as the name. - The final result should not include duplicate rows.
- The final result should have a
- Return the
country_code
,fertility_rate
, andlife_expectancy
from thepopulations
table.- Only return countries which are categorized as 'large' in the
countries_plus
table. - Filter for data from 2015.
- Only return countries which are categorized as 'large' in the
- Return the
local_name
aliased ascountry_name
,continent
,surface_area
, the number of official languages,gdp_percapita
, andunemployment_rate
from thecountries
,economies
, andlanguages
tables.- Ensure that all records from the
countries
table are preserved, regardless whether a match is present in theeconomies
orlanguages
tables. - Only include economy data from 2015.
- Sort your results by
gdp_percapita
in descending order.
- Ensure that all records from the