I have EXPERIMENTAL_RUNS (runId), each of which has any number of SENSORS (sensorId) associated with them. With that in mind, I have an RS table to join two:
Thus, if in run with runId = 1 there were sensors with a sensor Id = 1, sensorId = 6, sensorId = 8 in it, there would be 3 entries in table RS: (runId = 1, sensorId = 1) (runId = 1, sensorId = 6) (runId = 1, sensorId = 8)
Will I really return all EXPERIMENTAL_RUNS with sensors {11,13,15}? From what I read, it seems to me that I want this nested hash connection ... Will this happen?
SELECT a.runId FROM rs a, rs b, rs c WHERE a.runId=b.runId AND b.runId=c.runId AND a.sensorId=11 AND a.sensorId=13 AND b.sensorId=15
To clarify, I want to return only EXPERIMENTAL_RUNS with sensors 11 and 13 and 15.
source share