Skip to content

Instantly share code, notes, and snippets.

@GravenilvecTV
Created March 29, 2020 14:03
Show Gist options
  • Save GravenilvecTV/3681324ce7afab3673487303b9af03d5 to your computer and use it in GitHub Desktop.
Save GravenilvecTV/3681324ce7afab3673487303b9af03d5 to your computer and use it in GitHub Desktop.
Correction TP JOUR 10/30
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)
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
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