Example – count the field values associated with a field key

The COUNT(*) function returns the number of non-null field values:

> SELECT COUNT("water_level") FROM "h2o_feet"  name: h2o_feet time                   count ----                   ----- 1970-01-01T00:00:00Z   15258

The output is the number of non-null field values for the water_level field key in the h2o_feet measurement.

Get Industrial Internet Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.