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.
29 lines
625 B
29 lines
625 B
-- Query 4: Liste des consommations dont le prix unitaire > 1.5€, classée par libéllé
|
|
SELECT
|
|
cns.numcons as 'numéro',
|
|
cns.libcons as 'libellé',
|
|
cns.prixcons as 'prix'
|
|
FROM
|
|
consommation cns
|
|
WHERE
|
|
cns.prixcons > 1.5
|
|
ORDER BY cns.libcons;
|
|
/* == RESULT ==
|
|
"Numéro","Libellé","Prix"
|
|
107,"Bière 25 Cl",2.5
|
|
108,"Bière 33 Cl",3
|
|
110,"Bière 50 Cl",4.5
|
|
200,"Bière Blonde",4.5
|
|
106,"Bière pression",2.5
|
|
102,"Café crème",1.6
|
|
101,"Café double",2
|
|
105,"Chocolat",2
|
|
130,"Coca Cola",2
|
|
300,"Cocktail",8
|
|
121,"Fruit pressé",3
|
|
120,"Jus de fruit",2
|
|
150,"Jus de tomate",2
|
|
124,"Orangina",2.7
|
|
122,"Perrier",2.5
|
|
*/
|