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 %}}