Skip to content

Instantly share code, notes, and snippets.

@Gemechis10
Gemechis10 / formula1.sql
Created June 18, 2024 15:19
databases-week2-exercises.sql
team table
-- 1. What are the names of countries with population greater than 8 million?
SELECT Name
FROM country
WHERE Population > 8000000;
-- 2. What are the names of countries that have “land” in their names?
SELECT name FROM country WHERE name LIKE '%land%';
-- 3. What are the names of the cities with population in between 500,000 and 1 million?
SELECT name FROM city WHERE population > 500000 AND population < 1000000;