Add transaction and commit statements to SQL scripts
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user