Merge branch 'db' into backend

This commit is contained in:
j-weissen 2022-11-29 22:17:03 +01:00
commit 682ae88af8

View file

@ -27,7 +27,7 @@ CREATE VIEW lb_highscore AS (
SELECT username, max(score) AS highscore FROM game GROUP BY username ORDER BY highscore DESC SELECT username, max(score) AS highscore FROM game GROUP BY username ORDER BY highscore DESC
); );
CREATE VIEW lb_highscore AS ( CREATE VIEW lb_total_score AS (
SELECT username, sum(score) AS total_score FROM game GROUP BY username ORDER BY total_score DESC SELECT username, sum(score) AS total_score FROM game GROUP BY username ORDER BY total_score DESC
); );