Konvertera bara din mening i frågan:
(find) (the lowest imageID) (where the other two columns = 0) [SELECT] [MIN(imageID)] [WHERE Processing = 0 AND Finished = 0]
Så din fullständiga fråga bör vara (med >MIN()
aggregatfunktion):
SELECT MIN(ImageId) as LowestImageId
FROM Mytable
WHERE Processing = 0
AND Finished = 0