InfluxDB选择具有相同字段值的两行之间的不同时间

时间:2015-06-03 10:10:29

标签: influxdb

我在InfluxDB上有这样的表格: +---------------+-----------------+--------+--------------------------+ | time | sequence_number | action | session_id | +---------------+-----------------+--------+--------------------------+ | 1433322591220 | 270001 | delete | 556d85bfe26c3b3864617605 | | 1433322553324 | 250001 | delete | 556d88e4e26c3b3b83c99d32 | | 1433241828472 | 230001 | create | 556d88e4e26c3b3b83c99d32 | | 1433241023633 | 80001 | create | 556d85bfe26c3b3864617605 | | 1433239305306 | 70001 | create | 556d7f09e26c3b34e872b2ba | +---------------+-----------------+--------+--------------------------+ 现在我想找到从创建会话到删除的时间范围,这意味着获取time其中action=delete减去time其中action=create如果它们具有相同session_id }

0 个答案:

没有答案