fix: fix sql

This commit is contained in:
Nemo D'ACREMONT 2024-12-02 22:08:38 +01:00
parent 1ee84c3f61
commit 7133308658
No known key found for this signature in database
GPG Key ID: 6E5BCE8022FA8276
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,4 @@
DROP FUNCTION pieces_membre(integer);
CREATE OR REPLACE FUNCTION pieces_membre(int) RETURNS TABLE(id_piece int, quantite_piece int) CREATE OR REPLACE FUNCTION pieces_membre(int) RETURNS TABLE(id_piece int, quantite_piece int)
AS AS
$$ $$

View File

@ -66,7 +66,8 @@ LIMIT 5
SELECT id_modele, AVG(note_noter) as note_moyenne SELECT id_modele, AVG(note_noter) as note_moyenne
FROM noter FROM noter
GROUP BY id_modele NATURAL JOIN modeles
GROUP BY modeles.id_modele
ORDER BY note_moyenne ORDER BY note_moyenne
DESC DESC
; ;