Add ORDER BY time DESC <https://docs.influxdata.com/influxdb/v1.0/query_language/data_exploration/#sort-query-returns-with-order-by-time-desc> to the query
On Sun, Oct 2, 2016 at 6:49 PM, <[email protected]> wrote: > Hi, > > We have forecast data issued for the same period of time. It can be issued > at various time points, which we keep as base_date tags. What is the > easiest way to get the latest issued forecast? If you try to run something > like "select * from blah where x='y' group by base_date slimit 1" the > base_date is the earliest, not the latest. > > Thanks a lot, > Tanya > > -- > Remember to include the InfluxDB version number with all issue reports > --- > You received this message because you are subscribed to the Google Groups > "InfluxDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/influxdb. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/influxdb/f9f05733-bfdf-4637-900b-8e710ddfcd61%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Sean Beckett Director of Support and Professional Services InfluxDB -- Remember to include the InfluxDB version number with all issue reports --- You received this message because you are subscribed to the Google Groups "InfluxDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/CALGqCvP%2B7BwvOaOkkz_3dPqVftT421N6vyHLTyMwZU0X184o6w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
