Code Sample:
USE WORLD;CREATE VIEW city_country ASSELECT ci.name AS city_name, co.name AS country_nameFROM city ci JOIN country co ON ci.CountryCode = co.Code;
Results by selecting from the city_country view:
CREATE VIEW city_country AS
SELECT ci.name AS city_name, co.name AS country_name
FROM city ci
JOIN country co
ON ci.CountryCode = co.Code;