未验证 提交 8d660c0c 编写于 作者: S Sean Ely 提交者: GitHub

Update 01-docker.md

上级 2656f574
...@@ -87,11 +87,12 @@ Query the average, maximum, and minimum values of all rows whose `groupId` tag i ...@@ -87,11 +87,12 @@ Query the average, maximum, and minimum values of all rows whose `groupId` tag i
select avg(current), max(voltage), min(phase) from test.meters where groupId=10; select avg(current), max(voltage), min(phase) from test.meters where groupId=10;
``` ```
Query the average, maximum, and minimum values for table `d10` in 10 second intervals: Query the average, maximum, and minimum values for table `d10` in 1 second intervals:
```sql ```sql
select avg(current), max(voltage), min(phase) from test.d10 interval(10s); select first(ts), avg(current), max(voltage), min(phase) from test.d10 interval(1s);
``` ```
In the query above you are selecting the first timestamp (ts) in the interval, another way of selecting this would be _wstart which will give the start of the time window. For more information about windowed queries, see [Time-Series Extensions](../../taos-sql/distinguished/).
## Additional Information ## Additional Information
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册