Created
April 25, 2022 11:36
-
-
Save nicovray/ca53c9b9a0c15162d688cc413d2d8231 to your computer and use it in GitHub Desktop.
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
INSERT INTO school (name, country, capacity) | |
VALUES ('Beauxbatons Academy of Magic', 'France', 550), | |
('Castelobruxo', 'Brazil', 380), | |
('Durmstrang Institute', 'Norway', 570), | |
('Hogwarts School of Witchcraft and Wizardry','United Kingdom','450'), | |
('Ilvermorny School of Witchcraft and Wizardry','USA','300'), | |
('Koldovstoretz','Russia','125'), | |
('Mahoutokoro School of Magic','Japan','800'), | |
('Uagadou School of Magic','Uganda','350'); | |
UPDATE school SET country = 'Sweden' WHERE id = 3; | |
UPDATE school SET capacity = 700 WHERE id = 7; | |
DELETE FROM school WHERE name LIKE '%c'; | |
SELECT * FROM school; | |
+----+----------------------------------------------+----------+----------------+ | |
| id | name | capacity | country | | |
+----+----------------------------------------------+----------+----------------+ | |
| 2 | Castelobruxo | 380 | Brazil | | |
| 3 | Durmstrang Institute | 570 | Sweden | | |
| 4 | Hogwarts School of Witchcraft and Wizardry | 450 | United Kingdom | | |
| 5 | Ilvermorny School of Witchcraft and Wizardry | 300 | USA | | |
| 6 | Koldovstoretz | 125 | Russia | | |
+----+----------------------------------------------+----------+----------------+ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment