我的表 tbl_data(event_time, monitor_id,type,event_date,status)
select status,sum(runningDifference(event_time)) as delta from (SELECT status,event_date,event_time FROM tbl_data WHERE event_date >= '2018-05-01' AND monitor_id =3 ORDER BY event_time ASC) group by status
结果将是
status delta
1 4665465
2 965
这个查询结果给了我单个monitor_id的正确答案,现在我需要多个monitor_id,
如何在单个/相同查询中实现它?