Cukup ubah kalimat Anda dalam kueri:
(find) (the lowest imageID) (where the other two columns = 0) [SELECT] [MIN(imageID)] [WHERE Processing = 0 AND Finished = 0]
Jadi kueri lengkap Anda seharusnya (menggunakan MIN()
fungsi agregat):
SELECT MIN(ImageId) as LowestImageId
FROM Mytable
WHERE Processing = 0
AND Finished = 0