I'm confused by your example. If the type = "seen" then by definition the
type cannot also equal "opened". Also if you are GROUPing by the type, but
set type equal to one value, you are only going to get one group and the
entire GROUP BY clause is redundant.

Can you provide actual input and output data to clarify? What query are you
running, and what is it not returning?

On Wed, Jul 6, 2016 at 5:00 PM, <[email protected]> wrote:

> I have a field in my event called "type" and type can be either "seen",
> "opened", "received" etc. Each on the incoming event type also has field
> for "id" of the user. Based on used action event are generated with type
> being  "seen", "opened", "received" etc. I have to create a tag for the
> "type" field, since we want to groupby on the field to get aggregation of
> data based on type. I am trying to write a query to return only id which
> have type = "seen" and type is not "opened" but the query return id's where
> users have "seen" and "opened" too.
>
> Any help is appreciated.
>
> -Sumant
>
> --
> 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/640533fd-eabf-43e7-aae1-3d4ecec6b3b9%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/CALGqCvNjpmyVB7aap3%3DEMijVte-nFy7R2aGpXH9u01mKo9b48w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to