【发布时间】:2019-05-31 01:23:27
【问题描述】:
我需要一个 group by 查询以及基于计数的 if 条件,并且我在下面的 mysql 中有工作查询。
select notification,subject,max(time) as recent,value,IF(COUNT(event.value) > 1, 'Abnormal', 'Normal') AS NewResult from event where time between date_add(now(), interval -10 minute) and now() group by device,value order by time;
cassandra 中是否有任何相关查询。
【问题讨论】:
标签: cassandra cql cassandra-3.0 cql3