In my InfluxDB (V 1.8) I have one measurement with one field ("value") and one tag ("id") and a lot of series. There are two kinds of series in this measurement, one type contains raw data (float values) the other one contains validation data (float values = 0.0 or 1.0). There are always two series which belong together (id = "xyz_data" and id = "xyz_validation") and they do have the same time stamps.
I would like to query the data so that I only receive the data where the validation series has a value of 1.
Example:
xyz_data contains: 2.3, 5.4, 0.0, 2.1, 6.4
xyz_validation contains: 1.0, 0.0, 1.0, 1.0, 0.0
I expect the query to return: 2.3, 0.0, 2.1
Is there a way to do that using InfluxQL?