Update 01-docker.md

This commit is contained in:
Sean Ely 2022-08-22 14:39:37 -07:00 committed by GitHub
parent 2656f5746e
commit 8d660c0c4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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