prism
This commit is contained in:
@@ -182,6 +182,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天内,item-dispense行为,按坐标分组
|
||||||
|
select world_id, x, y, z, count((world_id, x, y, z))
|
||||||
|
from activities
|
||||||
|
where action_id = (select action_id from actions where action = 'item-dispense')
|
||||||
|
and timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400 * 1
|
||||||
|
group by world_id, x, y, z
|
||||||
|
order by count((world_id, x, y, z)) desc;
|
||||||
|
|
||||||
-- 1天内,发射的矿车,按坐标分组
|
-- 1天内,发射的矿车,按坐标分组
|
||||||
select world_id, x, y, z, count((world_id, x, y, z))
|
select world_id, x, y, z, count((world_id, x, y, z))
|
||||||
from activities
|
from activities
|
||||||
|
|||||||
Reference in New Issue
Block a user