From 786a862eb96742320940e3bd5a5f1859adbe654e Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Tue, 17 Sep 2024 15:21:29 -0600 Subject: [PATCH] hotfix: fix v2 influxql example --- .../influxdb/v2/query-data/influxql/explore-data/group-by.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/influxdb/v2/query-data/influxql/explore-data/group-by.md b/content/influxdb/v2/query-data/influxql/explore-data/group-by.md index 2843d8b6b..54b11eed1 100644 --- a/content/influxdb/v2/query-data/influxql/explore-data/group-by.md +++ b/content/influxdb/v2/query-data/influxql/explore-data/group-by.md @@ -224,10 +224,11 @@ measurement. {{% expand "Group query results by tags that start with `l`" %}} ```sql -SELECT "water_level",location FROM "h2o_feet" GROUP BY /l/ +SELECT MAX("water_level"),location FROM "h2o_feet" GROUP BY /l/ ``` -This query uses a regular expression to group by tags that start with `l`. With the sample NOAA water dataset, results are grouped by the `location` tag. +This query uses a regular expression to group by tags that start with `l`. +With the sample NOAA water dataset, results are grouped by the `location` tag. {{% /expand %}}