From 8d660c0c4f306121e1a4217e79ebdbdddc611e3e Mon Sep 17 00:00:00 2001 From: Sean Ely <105326513+sean-tdengine@users.noreply.github.com> Date: Mon, 22 Aug 2022 14:39:37 -0700 Subject: [PATCH] Update 01-docker.md --- docs/en/05-get-started/01-docker.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/en/05-get-started/01-docker.md b/docs/en/05-get-started/01-docker.md index 86680bd00f..32eee6b942 100644 --- a/docs/en/05-get-started/01-docker.md +++ b/docs/en/05-get-started/01-docker.md @@ -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; ``` -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 -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