Forudsat runId, sensorId
er unikke i rs
tabel, vil dette finde runId
s, der har alle 3 sensorId
s:
SELECT runId, COUNT(c) ct
FROM rs
WHERE sensorId IN (11, 13, 15)
GROUP BY runId
HAVING ct = 3
Forudsat runId, sensorId
er unikke i rs
tabel, vil dette finde runId
s, der har alle 3 sensorId
s:
SELECT runId, COUNT(c) ct
FROM rs
WHERE sensorId IN (11, 13, 15)
GROUP BY runId
HAVING ct = 3