Merge branch 'db' into backend
This commit is contained in:
commit
682ae88af8
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue