关于连续查询的一些问题 #10653
Answered
by
JackieTien97
StrongManLi
asked this question in
Q&A
关于连续查询的一些问题
#10653
-
1.我下面的 SQL 执行之后,在另存的表中,时间戳都是 1970-01-01T0:00:00这是由什么导致的呢,我应该如何设置时间呢 create CQ hourly resample every 1h boundary 2023-07-07T00:00:00 begin select sum(temperature) into root.hourly.::
(temperature) from root.a.b.* align by device end 2.聚合函数的查询结果起一个别名,能在where条件里对这个别名进行筛选吗 |
Beta Was this translation helpful? Give feedback.
Answered by
JackieTien97
Jul 29, 2023
Replies: 2 comments 1 reply
-
@stefaniexin @JackieTien97 have a look about this feature? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JackieTien97
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
select sum(s1) as sum_alias from root.db.d1 having sum_alias > 1
, 你可以参考官网https://iotdb.apache.org/zh/UserGuide/V1.1.x/Query-Data/Having-Condition.html;create CQ hourly resample every 5m RANGE 1h boundary 2023-07-07T00:00:00 begin select sum(temperature) into root.hourly.:: (temperature) from root.a.b.* group by(1h) align by device end
你也可以参考官网文档 https://iotdb.apache.org/zh/UserGuide/V1.1.x/Query-Data/Continuous-Query.html#%E8%BF%9E%E7%BB%AD%E6%9F%A5%E8%AF%A2%E7%9A%84%E7%94%A8%E4%BE%8B