Lav en GROUP BY
, brug HAVING
for at returnere task_id, der kun har nul-tilstande.
select task_id
from tablename
group by task_id
having max(state) is null
Lav en GROUP BY
, brug HAVING
for at returnere task_id, der kun har nul-tilstande.
select task_id
from tablename
group by task_id
having max(state) is null