You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
419 B

-- Query 10: Liste des 3 consommations de type bière avec le prix le plus élevé
SELECT
cns.numcons as 'numéro',
cns.libcons as 'libellé',
cns.prixcons as 'prix'
FROM consommation cns
WHERE cns.libcons LIKE "Bière%"
ORDER BY cns.prixcons DESC, cns.libcons ASC
FETCH FIRST 3 ROWS ONLY;
/* == RESULT ==
"Numéro","Libellé","Prix"
110,"Bière 50 Cl",4.5
200,"Bière Blonde",4.5
108,"Bière 33 Cl",3
*/