Skip to content

Commit

Permalink
Add Tables limits
Browse files Browse the repository at this point in the history
  • Loading branch information
ImmoSS committed Oct 7, 2024
1 parent 139f059 commit e6072f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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 (
Expand All @@ -495,13 +497,15 @@ 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
FROM Games
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;
Expand Down

0 comments on commit e6072f3

Please sign in to comment.