クエリで文を変換するだけです:
(find) (the lowest imageID) (where the other two columns = 0) [SELECT] [MIN(imageID)] [WHERE Processing = 0 AND Finished = 0]
したがって、完全なクエリは次のようになります( MIN()
集計関数):
SELECT MIN(ImageId) as LowestImageId
FROM Mytable
WHERE Processing = 0
AND Finished = 0