prism
This commit is contained in:
@@ -110,7 +110,7 @@ order by count((world_id, x, y, z)) desc;
|
|||||||
-- 1天内,活塞破换方块,按方块类型分组
|
-- 1天内,活塞破换方块,按方块类型分组
|
||||||
select blocks.name, count((affected_block_id, blocks.name))
|
select blocks.name, count((affected_block_id, blocks.name))
|
||||||
from activities
|
from activities
|
||||||
left join blocks on activities.affected_block_id = blocks.block_id
|
left join blocks on activities.affected_block_id = blocks.block_id
|
||||||
where action_id = (select action_id from actions where action = 'block-break')
|
where action_id = (select action_id from actions where action = 'block-break')
|
||||||
and cause_id = (select causes.cause_id from causes where cause = 'piston')
|
and cause_id = (select causes.cause_id from causes where cause = 'piston')
|
||||||
and timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400 * 1
|
and timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400 * 1
|
||||||
@@ -129,7 +129,7 @@ order by count((world_id, x, y, z)) desc;
|
|||||||
-- 1天内,爆炸破换方块,按方块类型分组
|
-- 1天内,爆炸破换方块,按方块类型分组
|
||||||
select blocks.name, count((affected_block_id, blocks.name))
|
select blocks.name, count((affected_block_id, blocks.name))
|
||||||
from activities
|
from activities
|
||||||
left join blocks on activities.affected_block_id = blocks.block_id
|
left join blocks on activities.affected_block_id = blocks.block_id
|
||||||
where action_id = (select action_id from actions where action = 'block-break')
|
where action_id = (select action_id from actions where action = 'block-break')
|
||||||
and cause_id = (select causes.cause_id from causes where cause = 'explosion')
|
and cause_id = (select causes.cause_id from causes where cause = 'explosion')
|
||||||
and timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400 * 1
|
and timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400 * 1
|
||||||
@@ -173,14 +173,14 @@ where action_id = (select action_id from actions where action = 'item-dispense')
|
|||||||
group by descriptor
|
group by descriptor
|
||||||
order by count(descriptor) desc;
|
order by count(descriptor) desc;
|
||||||
|
|
||||||
-- 1天内,发射的潜影盒,按坐标分组
|
-- 1天内,发射的矿车,按坐标分组
|
||||||
select descriptor, count(*)
|
select world_id, x, y, z, count((world_id, x, y, z))
|
||||||
from activities
|
from activities
|
||||||
where action_id = 2
|
where action_id = (select action_id from actions where action = 'item-dispense')
|
||||||
and timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400 * 1
|
and timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400 * 1
|
||||||
and descriptor = 'Shulker Box'
|
and descriptor = 'Minecart'
|
||||||
group by descriptor
|
group by world_id, x, y, z
|
||||||
order by count(descriptor) desc;
|
order by count((world_id, x, y, z)) desc;
|
||||||
|
|
||||||
-- 1天内的 entity-death 行为按玩家分组
|
-- 1天内的 entity-death 行为按玩家分组
|
||||||
select cause_player_id, players.player, count(*)
|
select cause_player_id, players.player, count(*)
|
||||||
|
|||||||
Reference in New Issue
Block a user