improve sql for top keys
This commit is contained in:
parent
0b97ee5696
commit
4f0493f69e
@ -1,4 +1,4 @@
|
|||||||
SELECT SUM(`sum_credits_used`) as sum, rpc_accounting_v2.rpc_key_id, rpc_key.user_id, user.email
|
SELECT SUM(`sum_credits_used`) as sum, rpc_accounting_v2.rpc_key_id, rpc_key.user_id, concat("0x", hex(user.address)) as address, user.email
|
||||||
FROM `rpc_accounting_v2`
|
FROM `rpc_accounting_v2`
|
||||||
JOIN rpc_key ON rpc_accounting_v2.rpc_key_id=rpc_key.id
|
JOIN rpc_key ON rpc_accounting_v2.rpc_key_id=rpc_key.id
|
||||||
JOIN user on rpc_key.user_id=user.id
|
JOIN user on rpc_key.user_id=user.id
|
Loading…
Reference in New Issue
Block a user