title: InfluxDB how to query every nth value
body: <p>I am trying to query data every nth element in InfluxDB. I am executing the command below to do so, but I am getting no results. I am using sample data that I created for the sake of the example. </p>
  
  <p>The command I am running in Influx's CLI:</p>
  
  <pre><code>SELECT value FROM generators GROUP BY time(5s)
  </code></pre>
  
  <p>The result:</p>
  
  <pre><code>GROUP BY requires at least one aggregate function
  </code></pre>
  
  <p>I am new to InfluxDB, and I am not sure what I am doing wrong. I have read up on making a continuous query, but when I do make one, I am unable to query data as it returns no results. Thank you all to those in advance who reply. </p>