Add transaction and commit statements to SQL scripts

This commit is contained in:
Morph01
2024-04-05 11:20:17 +02:00
parent f06818d9da
commit 44fd7669ba
3 changed files with 8 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ WITH participants_tournois AS
(SELECT idtournoi, COUNT(idtournoi) AS nb
FROM participe
JOIN tournoi USING(idtournoi)
AND YEAR(T.date_deb) >= (YEAR(NOW()) - 3)
WHERE YEAR(date_deb) >= (YEAR(NOW()) - 3)
GROUP BY idtournoi)
SELECT AVG(nb) AS average FROM participants_tournois;