Reputation: 69
Given a SQL query below with an IN
clause, is there a way in influx to achieve the same output produced by this?
SELECT * FROM Suppliers
WHERE Country IN (SELECT Country FROM Customers)
Upvotes: 1
Views: 235
Reputation: 465
Influxql does not support IN clause with SELECT statement. Refer here:
One option for you is to demoralize your measurement by flagging(adding additional column) the point in measurement-suppliers which has corresponding matching point within measurement-customers.
Upvotes: 2