add function to be able to delete names
This commit is contained in:
@@ -37,11 +37,9 @@ impl Backend {
|
||||
)
|
||||
SELECT rank, name, uuid, amount
|
||||
FROM ranked_clients
|
||||
WHERE rank <= (
|
||||
SELECT rank
|
||||
FROM ranked_clients
|
||||
ORDER BY rank
|
||||
LIMIT 1 OFFSET 9
|
||||
WHERE rank <= COALESCE(
|
||||
(SELECT rank FROM ranked_clients ORDER BY rank LIMIT 1 OFFSET 9),
|
||||
(SELECT MAX(rank) FROM ranked_clients)
|
||||
)
|
||||
ORDER BY rank, name"
|
||||
)
|
||||
|
Reference in New Issue
Block a user