title: What is the equivalent of SELECT first(column), last(column) in Flux Query Language?
body: <p>What would be equivalent flux queries for</p>
  <pre><code>SELECT first(column) as first, last(column) as last FROM measurement ?
  
  SELECT last(column) - first(column) as column FROM measurement ?
  </code></pre>
  <p>(I am referring to FluxQL, the new query language developed by InfluxData)</p>
  <p>There are first() and last() functions but, I am unable to find the example to use both in same query.</p>
  <p>These are the documentation for FluxQL for better reference:</p>
  <p><a href="https://docs.influxdata.com/flux/v0.50/introduction/getting-started" rel="nofollow noreferrer">https://docs.influxdata.com/flux/v0.50/introduction/getting-started</a></p>
  <p><a href="https://v2.docs.influxdata.com/v2.0/query-data/get-started/" rel="nofollow noreferrer">https://v2.docs.influxdata.com/v2.0/query-data/get-started/</a></p>