From e6072f3fc20bb9513db40aca33f5c8102d17264f Mon Sep 17 00:00:00 2001 From: ImmoSS <83536444+ImmoSS@users.noreply.github.com> Date: Mon, 7 Oct 2024 13:42:59 +0300 Subject: [PATCH] Add Tables limits --- data.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data.js b/data.js index 9bdd81f..32332e3 100644 --- a/data.js +++ b/data.js @@ -451,6 +451,7 @@ const sqlQueries = { SELECT COUNT(*) AS Games, Player FROM Games GROUP BY Player ) AS T3 ON T3.Player = T1.Player ORDER BY IFNULL(Wonders, 0) DESC + LIMIT 15 ; SELECT Player, IFNULL(F9, 0) AS 'Times F9 Pressed', IFNULL(Games,0) AS Games FROM ( @@ -473,6 +474,7 @@ const sqlQueries = { GROUP BY T1.Player ) ORDER BY IFNULL(F9, 0) DESC + LIMIT 15 ; SELECT Player, IFNULL(CS, 0) AS 'Times Entered City', IFNULL(Games,0) AS Games FROM ( @@ -495,6 +497,7 @@ const sqlQueries = { GROUP BY T1.Player ) ORDER BY IFNULL(CS, 0) DESC + LIMIT 15 ; SELECT Games.Player AS Player, IFNULL(SUM(IFNULL(PlayerQuitTurn, EndTurn)), 0) AS Turns, COUNT(*) AS Games @@ -502,6 +505,7 @@ const sqlQueries = { LEFT JOIN GameSeeds ON GameSeeds.GameID = Games.GameID GROUP BY Games.Player ORDER BY SUM(IFNULL(PlayerQuitTurn, EndTurn)) DESC + LIMIT 15 ; DROP TABLE IF EXISTS T2;