- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
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
USE linkedin; | |
CREATE TABLE users ( | |
id INT AUTO_INCREMENT PRIMARY KEY, | |
first_name VARCHAR(50), | |
last_name VARCHAR(100), | |
username VARCHAR(100) UNIQUE, | |
password VARCHAR(100) | |
); |
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
USE Formule1; | |
CREATE TABLE team ( | |
id INTEGER PRIMARY KEY, | |
name VARCHAR(100) UNIQUE , | |
country VARCHAR(100), | |
); | |
CREATE TABLE car ( | |
id INTEGER PRIMARY KEY, |