Created
March 29, 2020 14:03
-
-
Save GravenilvecTV/3681324ce7afab3673487303b9af03d5 to your computer and use it in GitHub Desktop.
Correction TP JOUR 10/30
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
SELECT nom FROM planete | |
SELECT temperature FROM planete WHERE nom = "Mars | |
INSERT INTO planete("id", "nom", "temperature", "distancesol", "diametre") VALUES(9, "Nebula", 1500, 123000, 472000) |
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
SELECT nom, diametre FROM planete ORDER BY distancesol DESC LIMIT (1) | |
SELECT nom FROM planete ORDER BY temperature ASC LIMIT (3) | |
SELECT SUM(temperature) FROM planete |
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
SELECT nom FROM mission ORDER BY nbequipage DESC LIMIT (1) | |
SELECT planete.nom, planete.diametre | |
FROM planete, mission | |
WHERE planete.id = mission.planete_id | |
AND mission.id = 2 | |
SELECT AVG(nbequipage) FROM mission |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment