début du script SQL pour calculer les stats

This commit is contained in:
2022-12-25 22:50:43 +01:00
parent ba88f758b5
commit f4bb23df44
3 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
import conn from '../database';
export const udpateDay = () => {
const sql = "SELECT AVG(note_principale) INTO @moyenne_globale FROM borne_avis WHERE date > DATE_ADD(NOW(), INTERVAL -1 DAY);";
}