This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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%'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table team ( | |
id integer auto_increment, | |
name varchar(50) not null unique, | |
country text not null, | |
primary key (id) | |
); | |
create table car ( | |
id integer, | |
carNumber integer not null unique, |