update top 10 jobs set processed_by = ? where processed_by is null order by job_id ; select * from jobs where processed_by = ?