I'm working on a practice problem and trying to use the table alias in the ON field but it's not working.
SELECT c.code AS country_code, name, year, inflation_rate
FROM countries AS c
Join to economies (alias e)
INNER JOIN economies AS e
**ON c.code = e.code;**
here's the standard answer
SELECT c.code AS country_code, name, year, inflation_rate
FROM countries AS c
Join to economies (alias e)
INNER JOIN economies AS e
**ON countries_code = e.code;**
This is what I entered
The standard answer wants me to use "c.code" in the ON field but I tried to use the alias "country_code" instead, and it wouldn't return any results.